sign components test fix

pull/386/head
saubyk 4 years ago
parent 9e3e6d4a5d
commit 1cd61c0e22
No known key found for this signature in database
GPG Key ID: 00C9E2BC2E45666F

BIN
.DS_Store vendored

Binary file not shown.

@ -1,14 +1,20 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DataService } from '../../../shared/services/data.service';
import { SignComponent } from './sign.component';
describe('SignComponent', () => {
let component: SignComponent;
let fixture: ComponentFixture<SignComponent>;
const mockDataService = jasmine.createSpyObj("DataService", ["getChildAPIUrl","setChildAPIUrl","getFiatRates",
"getAliasesFromPubkeys","signMessage","verifyMessage","handleErrorWithoutAlert","handleErrorWithAlert"]);
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SignComponent ]
declarations: [ SignComponent ],
providers: [
{ provide: DataService, useValue: mockDataService }
]
})
.compileComponents();
}));

Loading…
Cancel
Save