|
|
|
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
|
|
import { StoreModule } from '@ngrx/store';
|
|
|
|
|
|
|
|
import { RTLReducer } from '../../../store/rtl.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(RTLReducer, {
|
|
|
|
runtimeChecks: {
|
|
|
|
strictStateImmutability: false,
|
|
|
|
strictActionImmutability: false
|
|
|
|
}
|
|
|
|
})
|
|
|
|
]
|
|
|
|
}).
|
|
|
|
compileComponents();
|
|
|
|
}));
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
fixture = TestBed.createComponent(NodeConfigComponent);
|
|
|
|
component = fixture.componentInstance;
|
|
|
|
fixture.detectChanges();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should create', () => {
|
|
|
|
expect(component).toBeTruthy();
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
TestBed.resetTestingModule();
|
|
|
|
});
|
|
|
|
});
|