sign components test fix

This commit is contained in:
saubyk 2020-07-20 22:18:08 -04:00
parent 9e3e6d4a5d
commit 1cd61c0e22
No known key found for this signature in database
GPG key ID: 00C9E2BC2E45666F
2 changed files with 7 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

View file

@ -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();
}));