2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-10-31 09:20:27 +00:00
RTL/src/app/cln/graph/lookups/channel-lookup/channel-lookup.component.spec.ts

41 lines
1.3 KiB
TypeScript
Raw Normal View History

2021-08-28 21:03:18 +00:00
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { StoreModule } from '@ngrx/store';
2021-12-29 23:08:41 +00:00
import { SharedModule } from '../../../../shared/shared.module';
2019-09-07 21:31:32 +00:00
2021-12-29 23:08:41 +00:00
import { RootReducer } from '../../../../store/rtl.reducers';
import { LNDReducer } from '../../../../lnd/store/lnd.reducers';
import { CLNReducer } from '../../../../cln/store/cln.reducers';
2021-12-29 23:08:41 +00:00
import { ECLReducer } from '../../../../eclair/store/ecl.reducers';
import { CLNChannelLookupComponent } from './channel-lookup.component';
2019-09-07 21:31:32 +00:00
describe('CLNChannelLookupComponent', () => {
let component: CLNChannelLookupComponent;
let fixture: ComponentFixture<CLNChannelLookupComponent>;
2019-09-07 21:31:32 +00:00
2021-08-28 21:03:18 +00:00
beforeEach(waitForAsync(() => {
2019-09-07 21:31:32 +00:00
TestBed.configureTestingModule({
declarations: [CLNChannelLookupComponent],
2021-08-28 21:03:18 +00:00
imports: [
SharedModule,
StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer })
2021-08-28 21:03:18 +00:00
]
}).
compileComponents();
2019-09-07 21:31:32 +00:00
}));
beforeEach(() => {
fixture = TestBed.createComponent(CLNChannelLookupComponent);
2019-09-07 21:31:32 +00:00
component = fixture.componentInstance;
component.lookupResult = { channels: [] };
2019-09-07 21:31:32 +00:00
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
2021-08-28 21:03:18 +00:00
afterEach(() => {
TestBed.resetTestingModule();
});
2019-09-07 21:31:32 +00:00
});