diff --git a/src/app/shared/components/ln-services/boltz/swap-status/swap-status.component.spec.ts b/src/app/shared/components/ln-services/boltz/swap-status/swap-status.component.spec.ts index 35ad4e60..3f26919c 100755 --- a/src/app/shared/components/ln-services/boltz/swap-status/swap-status.component.spec.ts +++ b/src/app/shared/components/ln-services/boltz/swap-status/swap-status.component.spec.ts @@ -1,6 +1,9 @@ import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; import { SharedModule } from '../../../../shared.module'; +import { DataService } from '../../../../services/data.service'; +import { CommonService } from '../../../../services/common.service'; +import { mockDataService } from '../../../../test-helpers/mock-services'; import { SwapStatusComponent } from './swap-status.component'; describe('SwapStatusComponent', () => { @@ -10,7 +13,11 @@ describe('SwapStatusComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [SwapStatusComponent], - imports: [SharedModule] + imports: [SharedModule], + providers: [ + CommonService, + { provide: DataService, useClass: mockDataService } + ] }). compileComponents(); })); diff --git a/src/app/shared/test-helpers/mock-services.ts b/src/app/shared/test-helpers/mock-services.ts index db4c5089..33d4672c 100644 --- a/src/app/shared/test-helpers/mock-services.ts +++ b/src/app/shared/test-helpers/mock-services.ts @@ -174,6 +174,8 @@ export class mockLoopService { export class mockBoltzService { public swapsChanged = new BehaviorSubject([]); + public boltzInfoChanged = new BehaviorSubject({}); + getBoltzInfo() { }; getSwapsList() { }; listSwaps() { }; swapInfo(id: string) { };