diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 62e8d6f..ca10fb8 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -14,16 +14,16 @@ describe('AppComponent', () => { expect(app).toBeTruthy(); }); - it(`should have the 'angular-techs-logos' title`, () => { + it(`should have the 'angular-techs-logos'`, () => { const fixture = TestBed.createComponent(AppComponent); const app = fixture.componentInstance; - expect(app.title).toEqual('angular-techs-logos'); + expect(app.codeString).toEqual(''); }); it('should render title', () => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.nativeElement as HTMLElement; - expect(compiled.querySelector('h1')?.textContent).toContain('Hello, angular-techs-logos'); + expect(compiled.querySelector('h1')?.textContent).toContain('angular-techs-logos'); }); }); diff --git a/src/app/components/app-footer/app-footer.component.spec.ts b/src/app/components/app-footer/app-footer.component.spec.ts index 2e2365f..65390d0 100644 --- a/src/app/components/app-footer/app-footer.component.spec.ts +++ b/src/app/components/app-footer/app-footer.component.spec.ts @@ -1,5 +1,4 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - import { AppFooterComponent } from './app-footer.component'; describe('AppFooterComponent', () => { @@ -8,7 +7,7 @@ describe('AppFooterComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - declarations: [ AppFooterComponent ] + imports: [ AppFooterComponent ] }) .compileComponents(); })); diff --git a/src/app/components/app-version/app-version.component.spec.ts b/src/app/components/app-version/app-version.component.spec.ts index a723494..3cbf47f 100644 --- a/src/app/components/app-version/app-version.component.spec.ts +++ b/src/app/components/app-version/app-version.component.spec.ts @@ -1,17 +1,18 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { AppVersionComponent } from './app-version.component'; describe('AppVersionComponent', () => { let component: AppVersionComponent; let fixture: ComponentFixture; - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ AppVersionComponent ] + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ AppVersionComponent ] }) .compileComponents(); + })); + beforeEach(() => { fixture = TestBed.createComponent(AppVersionComponent); component = fixture.componentInstance; fixture.detectChanges(); diff --git a/src/app/components/darkmode/darkmode.component.spec.ts b/src/app/components/darkmode/darkmode.component.spec.ts index 1bf9e0d..4a061ea 100644 --- a/src/app/components/darkmode/darkmode.component.spec.ts +++ b/src/app/components/darkmode/darkmode.component.spec.ts @@ -9,7 +9,7 @@ describe('DarkmodeComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ DarkmodeComponent ] + imports: [ DarkmodeComponent ] }) .compileComponents();