parent
9b9f281cab
commit
2d78247dc8
@ -1,7 +1,7 @@ |
||||
import { Component, OnInit } from '@angular/core'; |
||||
import {Agence} from "../interfaces/agence"; |
||||
import {Agence} from "../../../interfaces/agence"; |
||||
import {ActivatedRoute} from "@angular/router"; |
||||
import {AgenceService} from "../services/agence.service"; |
||||
import {AgenceService} from "../../../services/agence.service"; |
||||
import {Location} from "@angular/common"; |
||||
|
||||
@Component({ |
@ -1,7 +1,7 @@ |
||||
import { Component, OnInit } from '@angular/core'; |
||||
import {Agence} from "../interfaces/agence"; |
||||
import {Agence} from "../../interfaces/agence"; |
||||
import {HttpClient} from "@angular/common/http"; |
||||
import {AgenceService} from "../services/agence.service"; |
||||
import {AgenceService} from "../../services/agence.service"; |
||||
|
||||
@Component({ |
||||
selector: 'app-agence', |
@ -1,8 +1,8 @@ |
||||
import {Component, OnInit} from '@angular/core'; |
||||
import {Collaborateur} from "../interfaces/collaborateur"; |
||||
import {Collaborateur} from "../../../interfaces/collaborateur"; |
||||
import { ActivatedRoute } from '@angular/router'; |
||||
import { Location } from '@angular/common'; |
||||
import { CollaborateurService} from "../services/collaborateur.service"; |
||||
import { CollaborateurService} from "../../../services/collaborateur.service"; |
||||
|
||||
@Component({ |
||||
selector: 'app-collaborateur-edit', |
@ -1,7 +1,7 @@ |
||||
import { Component, OnInit } from '@angular/core'; |
||||
import {HttpClient} from "@angular/common/http"; |
||||
import {CollaborateurService} from "../services/collaborateur.service"; |
||||
import {Collaborateur} from "../interfaces/collaborateur"; |
||||
import {CollaborateurService} from "../../services/collaborateur.service"; |
||||
import {Collaborateur} from "../../interfaces/collaborateur"; |
||||
|
||||
@Component({ |
||||
selector: 'app-collaborateur', |
@ -1,25 +0,0 @@ |
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { AgenceEditComponent } from '../agence-edit/agence-edit.component'; |
||||
|
||||
describe('AgenceEditComponent', () => { |
||||
let component: AgenceEditComponent; |
||||
let fixture: ComponentFixture<AgenceEditComponent>; |
||||
|
||||
beforeEach(async () => { |
||||
await TestBed.configureTestingModule({ |
||||
declarations: [ AgenceEditComponent ] |
||||
}) |
||||
.compileComponents(); |
||||
}); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(AgenceEditComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -1,25 +0,0 @@ |
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { AgenceComponent } from '../agence/agence.component'; |
||||
|
||||
describe('AgenceComponent', () => { |
||||
let component: AgenceComponent; |
||||
let fixture: ComponentFixture<AgenceComponent>; |
||||
|
||||
beforeEach(async () => { |
||||
await TestBed.configureTestingModule({ |
||||
declarations: [ AgenceComponent ] |
||||
}) |
||||
.compileComponents(); |
||||
}); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(AgenceComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -1,16 +0,0 @@ |
||||
import { TestBed } from '@angular/core/testing'; |
||||
|
||||
import { AgenceService } from '../services/agence.service'; |
||||
|
||||
describe('AgenceService', () => { |
||||
let service: AgenceService; |
||||
|
||||
beforeEach(() => { |
||||
TestBed.configureTestingModule({}); |
||||
service = TestBed.inject(AgenceService); |
||||
}); |
||||
|
||||
it('should be created', () => { |
||||
expect(service).toBeTruthy(); |
||||
}); |
||||
}); |
@ -1,31 +0,0 @@ |
||||
import { TestBed } from '@angular/core/testing'; |
||||
import { AppComponent } from '../app.component'; |
||||
|
||||
describe('AppComponent', () => { |
||||
beforeEach(async () => { |
||||
await TestBed.configureTestingModule({ |
||||
declarations: [ |
||||
AppComponent |
||||
], |
||||
}).compileComponents(); |
||||
}); |
||||
|
||||
it('should create the app', () => { |
||||
const fixture = TestBed.createComponent(AppComponent); |
||||
const app = fixture.componentInstance; |
||||
expect(app).toBeTruthy(); |
||||
}); |
||||
|
||||
it(`should have as title 'Collaborateur-Epa-Front'`, () => { |
||||
const fixture = TestBed.createComponent(AppComponent); |
||||
const app = fixture.componentInstance; |
||||
expect(app.title).toEqual('Collaborateur-Epa-Front'); |
||||
}); |
||||
|
||||
it('should render title', () => { |
||||
const fixture = TestBed.createComponent(AppComponent); |
||||
fixture.detectChanges(); |
||||
const compiled = fixture.nativeElement; |
||||
expect(compiled.querySelector('.content span').textContent).toContain('Collaborateur-Epa-Front app is running!'); |
||||
}); |
||||
}); |
@ -1,25 +0,0 @@ |
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { CollaborateurEditComponent } from '../collaborateur-edit/collaborateur-edit.component'; |
||||
|
||||
describe('CollaborateurEditComponent', () => { |
||||
let component: CollaborateurEditComponent; |
||||
let fixture: ComponentFixture<CollaborateurEditComponent>; |
||||
|
||||
beforeEach(async () => { |
||||
await TestBed.configureTestingModule({ |
||||
declarations: [ CollaborateurEditComponent ] |
||||
}) |
||||
.compileComponents(); |
||||
}); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(CollaborateurEditComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -1,25 +0,0 @@ |
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { CollaborateurComponent } from '../collaborateur/collaborateur.component'; |
||||
|
||||
describe('CollaborateurComponent', () => { |
||||
let component: CollaborateurComponent; |
||||
let fixture: ComponentFixture<CollaborateurComponent>; |
||||
|
||||
beforeEach(async () => { |
||||
await TestBed.configureTestingModule({ |
||||
declarations: [ CollaborateurComponent ] |
||||
}) |
||||
.compileComponents(); |
||||
}); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(CollaborateurComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -1,16 +0,0 @@ |
||||
import { TestBed } from '@angular/core/testing'; |
||||
|
||||
import { CollaborateurService } from '../services/collaborateur.service'; |
||||
|
||||
describe('CollaborateurService', () => { |
||||
let service: CollaborateurService; |
||||
|
||||
beforeEach(() => { |
||||
TestBed.configureTestingModule({}); |
||||
service = TestBed.inject(CollaborateurService); |
||||
}); |
||||
|
||||
it('should be created', () => { |
||||
expect(service).toBeTruthy(); |
||||
}); |
||||
}); |
@ -1,25 +0,0 @@ |
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { HomeComponent } from '../home/home.component'; |
||||
|
||||
describe('HomeComponent', () => { |
||||
let component: HomeComponent; |
||||
let fixture: ComponentFixture<HomeComponent>; |
||||
|
||||
beforeEach(async () => { |
||||
await TestBed.configureTestingModule({ |
||||
declarations: [ HomeComponent ] |
||||
}) |
||||
.compileComponents(); |
||||
}); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(HomeComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -1,16 +0,0 @@ |
||||
import { TestBed } from '@angular/core/testing'; |
||||
|
||||
import { MessageService } from '../services/message.service'; |
||||
|
||||
describe('MessageService', () => { |
||||
let service: MessageService; |
||||
|
||||
beforeEach(() => { |
||||
TestBed.configureTestingModule({}); |
||||
service = TestBed.inject(MessageService); |
||||
}); |
||||
|
||||
it('should be created', () => { |
||||
expect(service).toBeTruthy(); |
||||
}); |
||||
}); |
@ -1,25 +0,0 @@ |
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { MessagesComponent } from '../messages/messages.component'; |
||||
|
||||
describe('MessagesComponent', () => { |
||||
let component: MessagesComponent; |
||||
let fixture: ComponentFixture<MessagesComponent>; |
||||
|
||||
beforeEach(async () => { |
||||
await TestBed.configureTestingModule({ |
||||
declarations: [ MessagesComponent ] |
||||
}) |
||||
.compileComponents(); |
||||
}); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(MessagesComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -1,25 +0,0 @@ |
||||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
||||
|
||||
import 'zone.js/testing'; |
||||
import { getTestBed } from '@angular/core/testing'; |
||||
import { |
||||
BrowserDynamicTestingModule, |
||||
platformBrowserDynamicTesting |
||||
} from '@angular/platform-browser-dynamic/testing'; |
||||
|
||||
declare const require: { |
||||
context(path: string, deep?: boolean, filter?: RegExp): { |
||||
keys(): string[]; |
||||
<T>(id: string): T; |
||||
}; |
||||
}; |
||||
|
||||
// First, initialize the Angular testing environment.
|
||||
getTestBed().initTestEnvironment( |
||||
BrowserDynamicTestingModule, |
||||
platformBrowserDynamicTesting() |
||||
); |
||||
// Then we find all the tests.
|
||||
const context = require.context('./', true, /\.spec\.ts$/); |
||||
// And load the modules.
|
||||
context.keys().map(context); |
Loading…
Reference in new issue