mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-03-11 01:27:27 +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 { 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…
Add table
Reference in a new issue