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