From 746e1a94b58cd41a86c8ecb70c9b70e690627a9b Mon Sep 17 00:00:00 2001 From: Nils Dittberner Date: Thu, 17 Oct 2019 09:13:13 +0200 Subject: [PATCH] Remove tests --- src/app/app.component.spec.ts | 31 ----------------------- src/app/dashboard/dashboard.component.spec.ts | 25 ------------------ src/app/hero-detail/hero-detail.component.spec.ts | 25 ------------------ src/app/hero.service.spec.ts | 12 --------- src/app/heroes/heroes.component.spec.ts | 25 ------------------ src/app/message.service.spec.ts | 12 --------- 6 files changed, 130 deletions(-) delete mode 100644 src/app/app.component.spec.ts delete mode 100644 src/app/dashboard/dashboard.component.spec.ts delete mode 100644 src/app/hero-detail/hero-detail.component.spec.ts delete mode 100644 src/app/hero.service.spec.ts delete mode 100644 src/app/heroes/heroes.component.spec.ts delete mode 100644 src/app/message.service.spec.ts diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts deleted file mode 100644 index ded94c9..0000000 --- a/src/app/app.component.spec.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { TestBed, async } from '@angular/core/testing'; -import { AppComponent } from './app.component'; - -describe('AppComponent', () => { - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ - AppComponent - ], - }).compileComponents(); - })); - - it('should create the app', () => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app).toBeTruthy(); - }); - - it(`should have as title 'angular-tour-of-heroes'`, () => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app.title).toEqual('angular-tour-of-heroes'); - }); - - it('should render title', () => { - const fixture = TestBed.createComponent(AppComponent); - fixture.detectChanges(); - const compiled = fixture.debugElement.nativeElement; - expect(compiled.querySelector('.content span').textContent).toContain('angular-tour-of-heroes app is running!'); - }); -}); diff --git a/src/app/dashboard/dashboard.component.spec.ts b/src/app/dashboard/dashboard.component.spec.ts deleted file mode 100644 index 9c996c3..0000000 --- a/src/app/dashboard/dashboard.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { DashboardComponent } from './dashboard.component'; - -describe('DashboardComponent', () => { - let component: DashboardComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ DashboardComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(DashboardComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/hero-detail/hero-detail.component.spec.ts b/src/app/hero-detail/hero-detail.component.spec.ts deleted file mode 100644 index 5e34497..0000000 --- a/src/app/hero-detail/hero-detail.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { HeroDetailComponent } from './hero-detail.component'; - -describe('HeroDetailComponent', () => { - let component: HeroDetailComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ HeroDetailComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(HeroDetailComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/hero.service.spec.ts b/src/app/hero.service.spec.ts deleted file mode 100644 index 082791a..0000000 --- a/src/app/hero.service.spec.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { HeroService } from './hero.service'; - -describe('HeroService', () => { - beforeEach(() => TestBed.configureTestingModule({})); - - it('should be created', () => { - const service: HeroService = TestBed.get(HeroService); - expect(service).toBeTruthy(); - }); -}); diff --git a/src/app/heroes/heroes.component.spec.ts b/src/app/heroes/heroes.component.spec.ts deleted file mode 100644 index 66518e4..0000000 --- a/src/app/heroes/heroes.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { HeroesComponent } from './heroes.component'; - -describe('HeroesComponent', () => { - let component: HeroesComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ HeroesComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(HeroesComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/message.service.spec.ts b/src/app/message.service.spec.ts deleted file mode 100644 index 24d2d1d..0000000 --- a/src/app/message.service.spec.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { MessageService } from './message.service'; - -describe('MessageService', () => { - beforeEach(() => TestBed.configureTestingModule({})); - - it('should be created', () => { - const service: MessageService = TestBed.get(MessageService); - expect(service).toBeTruthy(); - }); -});