import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { provideMockStore } from '@ngrx/store/testing'; import { Alignment, APP_CONFIG, testAppConfig } from '@wvr/elements'; import { TLSharedModule } from '../shared/tl-shared.module'; import { TlNavListComponent } from './tl-nav-list.component'; describe('TlNavListComponent', () => { let component: TlNavListComponent; let fixture: ComponentFixture; const initialState = { theme: { themes: {} } }; beforeEach(waitForAsync(() => TestBed.configureTestingModule({ imports: [ BrowserAnimationsModule, TLSharedModule ], declarations: [TlNavListComponent], providers: [ provideMockStore({ initialState }), { provide: APP_CONFIG, useValue: testAppConfig } ] }) .compileComponents() .catch(err => { console.error(err); }))); beforeEach(() => { fixture = TestBed.createComponent(TlNavListComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component) .toBeTruthy(); }); it("should have as aligned 'LEFT'", () => { expect(component.aligned) .toEqual(Alignment.LEFT); }); it("should have as 'vertical false' ", () => { expect(component.vertical) .toEqual(false); }); });