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/shared/components/node-config/node-config.component.spec.ts

42 lines
1.3 KiB
TypeScript

import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { StoreModule } from '@ngrx/store';
import { RootReducer } from '../../../store/rtl.reducers';
import { LNDReducer } from '../../../lnd/store/lnd.reducers';
import { CLReducer } from '../../../clightning/store/cl.reducers';
import { ECLReducer } from '../../../eclair/store/ecl.reducers';
import { SharedModule } from '../../shared.module';
import { NodeConfigComponent } from './node-config.component';
describe('NodeConfigComponent', () => {
let component: NodeConfigComponent;
let fixture: ComponentFixture<NodeConfigComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [NodeConfigComponent],
imports: [
SharedModule,
RouterTestingModule,
StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cl: CLReducer, ecl: ECLReducer })
]
}).
compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(NodeConfigComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
afterEach(() => {
TestBed.resetTestingModule();
});
});