import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; import { StoreModule } from '@ngrx/store'; import { SharedModule } from '../../../../shared/shared.module'; import { RootReducer } from '../../../../store/rtl.reducers'; import { LNDReducer } from '../../../../lnd/store/lnd.reducers'; import { CLNReducer } from '../../../../cln/store/cln.reducers'; import { ECLReducer } from '../../../../eclair/store/ecl.reducers'; import { CLNChannelLookupComponent } from './channel-lookup.component'; describe('CLNChannelLookupComponent', () => { let component: CLNChannelLookupComponent; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [CLNChannelLookupComponent], imports: [ SharedModule, StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer }) ] }). compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(CLNChannelLookupComponent); component = fixture.componentInstance; component.lookupResult = { channels: [] }; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); afterEach(() => { TestBed.resetTestingModule(); }); });