You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/src/app/cln/graph/lookups/node-lookup/node-lookup.component.spec.ts

46 lines
1.5 KiB
TypeScript

import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { StoreModule } from '@ngrx/store';
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 { LoggerService } from '../../../../shared/services/logger.service';
import { SharedModule } from '../../../../shared/shared.module';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { CLNNodeLookupComponent } from './node-lookup.component';
describe('CLNNodeLookupComponent', () => {
let component: CLNNodeLookupComponent;
let fixture: ComponentFixture<CLNNodeLookupComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [CLNNodeLookupComponent],
imports: [
SharedModule,
BrowserAnimationsModule,
StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer })
],
providers: [LoggerService]
}).
compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(CLNNodeLookupComponent);
component = fixture.componentInstance;
component.lookupResult = {};
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
afterEach(() => {
TestBed.resetTestingModule();
});
});