mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-03-12 02:08:07 +01:00
sign components test fix
This commit is contained in:
parent
9e3e6d4a5d
commit
1cd61c0e22
2 changed files with 7 additions and 1 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
|
@ -1,14 +1,20 @@
|
||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { DataService } from '../../../shared/services/data.service';
|
||||||
|
|
||||||
import { SignComponent } from './sign.component';
|
import { SignComponent } from './sign.component';
|
||||||
|
|
||||||
describe('SignComponent', () => {
|
describe('SignComponent', () => {
|
||||||
let component: SignComponent;
|
let component: SignComponent;
|
||||||
let fixture: ComponentFixture<SignComponent>;
|
let fixture: ComponentFixture<SignComponent>;
|
||||||
|
const mockDataService = jasmine.createSpyObj("DataService", ["getChildAPIUrl","setChildAPIUrl","getFiatRates",
|
||||||
|
"getAliasesFromPubkeys","signMessage","verifyMessage","handleErrorWithoutAlert","handleErrorWithAlert"]);
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
declarations: [ SignComponent ]
|
declarations: [ SignComponent ],
|
||||||
|
providers: [
|
||||||
|
{ provide: DataService, useValue: mockDataService }
|
||||||
|
]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Add table
Reference in a new issue