mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-18 13:08:39 +02:00
Testcase fix
Testcase fix
This commit is contained in:
parent
444c657158
commit
65ee024e8d
2 changed files with 6 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ import { DataService } from '../../../shared/services/data.service';
|
|||
|
||||
import { OnChainLabelModalComponent } from './on-chain-label-modal.component';
|
||||
import { SharedModule } from '../../../shared/shared.module';
|
||||
import { mockDataService, mockLoggerService, mockMatDialogRef } from '../../../shared/test-helpers/mock-services';
|
||||
import { mockDataService, mockMatDialogRef } from '../../../shared/test-helpers/mock-services';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
|
||||
describe('OnChainLabelModalComponent', () => {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { StoreModule } from '@ngrx/store';
|
||||
import { mockLNDEffects } from '../../../shared/test-helpers/mock-services';
|
||||
import { mockDataService, mockLNDEffects } from '../../../shared/test-helpers/mock-services';
|
||||
import { SharedModule } from '../../../shared/shared.module';
|
||||
|
||||
import { CommonService } from '../../../shared/services/common.service';
|
||||
import { DataService } from '../../../shared/services/data.service';
|
||||
import { RootReducer } from '../../../store/rtl.reducers';
|
||||
import { LNDReducer } from '../../../lnd/store/lnd.reducers';
|
||||
import { CLNReducer } from '../../../cln/store/cln.reducers';
|
||||
|
|
@ -24,6 +26,8 @@ describe('OnChainReceiveComponent', () => {
|
|||
StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer })
|
||||
],
|
||||
providers: [
|
||||
CommonService,
|
||||
{ provide: DataService, useClass: mockDataService },
|
||||
{ provide: LNDEffects, useClass: mockLNDEffects }
|
||||
]
|
||||
}).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue