Deleted test templates

This commit is contained in:
Eneko Nieto
2021-02-22 22:54:48 +01:00
parent ae6eb2cfca
commit 3030be9cfb
9 changed files with 0 additions and 201 deletions

View File

@@ -1,28 +0,0 @@
import { TestBed, async, waitForAsync } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { AppModule } from './app.module';
describe('AppComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [AppModule]
}).compileComponents();
}));
it('should create the app', waitForAsync(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
}));
it('should render link to flight in a a tag', waitForAsync(() => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
console.log(compiled);
expect(compiled.querySelectorAll(' li a')[2].textContent).toContain(
'Book a Flight'
);
}));
});

View File

@@ -1,25 +0,0 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { EditTravelComponent } from './edit-travel.component';
describe('EditTravelComponent', () => {
let component: EditTravelComponent;
let fixture: ComponentFixture<EditTravelComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ EditTravelComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(EditTravelComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -1,25 +0,0 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NewTravelComponent } from './new-travel.component';
describe('NewTravelComponent', () => {
let component: NewTravelComponent;
let fixture: ComponentFixture<NewTravelComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ NewTravelComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(NewTravelComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -1,25 +0,0 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { TravelComponent } from './travel.component';
describe('TravelComponent', () => {
let component: TravelComponent;
let fixture: ComponentFixture<TravelComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ TravelComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(TravelComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -1,16 +0,0 @@
import { TestBed } from '@angular/core/testing';
import { AbilityService } from './ability.service';
describe('AbilityService', () => {
let service: AbilityService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(AbilityService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});

View File

@@ -1,16 +0,0 @@
import { TestBed } from '@angular/core/testing';
import { ApiService } from './api.service';
describe('ApiService', () => {
let service: ApiService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(ApiService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});

View File

@@ -1,16 +0,0 @@
import { TestBed } from '@angular/core/testing';
import { AuthService } from './auth.service';
describe('AuthService', () => {
let service: AuthService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(AuthService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});

View File

@@ -1,25 +0,0 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { LoginComponent } from './header.component';
describe('LoginComponent', () => {
let component: LoginComponent;
let fixture: ComponentFixture<LoginComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ LoginComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(LoginComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -1,25 +0,0 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { TravelFormComponent } from './travel-form.component';
describe('TravelFormComponent', () => {
let component: TravelFormComponent;
let fixture: ComponentFixture<TravelFormComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ TravelFormComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(TravelFormComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});