Test import fixes

pull/1379/head
ShahanaFarooqui 2 months ago
parent ba36aa8e3f
commit ba4d0df32c

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

@ -174,6 +174,8 @@ export class mockLoopService {
export class mockBoltzService {
public swapsChanged = new BehaviorSubject<any[]>([]);
public boltzInfoChanged = new BehaviorSubject<any>({});
getBoltzInfo() { };
getSwapsList() { };
listSwaps() { };
swapInfo(id: string) { };

Loading…
Cancel
Save