From a0331aaa13e754e2a7715c4a20d2b7c6a23ebc49 Mon Sep 17 00:00:00 2001 From: MishaZhem Date: Fri, 12 Jul 2024 16:41:15 +0300 Subject: [PATCH] chore: delete tests and extra code --- .../src/components/app/app.component.spec.ts | 31 ------------------- .../navigation/navigation.component.html | 3 +- .../navigation/navigation.component.spec.ts | 23 -------------- .../navigation/navigation.component.ts | 3 -- 4 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 apps/taiga-lumbermill/src/components/app/app.component.spec.ts delete mode 100644 apps/taiga-lumbermill/src/components/navigation/navigation.component.spec.ts diff --git a/apps/taiga-lumbermill/src/components/app/app.component.spec.ts b/apps/taiga-lumbermill/src/components/app/app.component.spec.ts deleted file mode 100644 index 2ef0193ea..000000000 --- a/apps/taiga-lumbermill/src/components/app/app.component.spec.ts +++ /dev/null @@ -1,31 +0,0 @@ -import {TestBed} from '@angular/core/testing'; -import {RouterTestingModule} from '@angular/router/testing'; - -import {AppComponent} from './app.component'; -import {NxWelcomeComponent} from './nx-welcome.component'; - -describe('AppComponent', () => { - beforeEach(async () => { - await TestBed.configureTestingModule({ - imports: [AppComponent, NxWelcomeComponent, RouterTestingModule], - }).compileComponents(); - }); - - it('should render title', () => { - const fixture = TestBed.createComponent(AppComponent); - - fixture.detectChanges(); - const compiled = fixture.nativeElement as HTMLElement; - - expect(compiled.querySelector('h1')?.textContent).toContain( - 'Welcome taiga-lumbermill', - ); - }); - - it("should have as title 'taiga-lumbermill'", () => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.componentInstance; - - expect(app.title).toBe('taiga-lumbermill'); - }); -}); diff --git a/apps/taiga-lumbermill/src/components/navigation/navigation.component.html b/apps/taiga-lumbermill/src/components/navigation/navigation.component.html index 6377fcde5..fc4708435 100644 --- a/apps/taiga-lumbermill/src/components/navigation/navigation.component.html +++ b/apps/taiga-lumbermill/src/components/navigation/navigation.component.html @@ -80,14 +80,15 @@ Groups