From ddf08c8e949b2da983b5998e5b7d51612f8d5f71 Mon Sep 17 00:00:00 2001 From: FORESTIER Fabien <fabien.forestier@soprasteria.com> Date: Mon, 29 Oct 2018 17:37:56 +0100 Subject: [PATCH] Add imports and providers in contact tests --- src/app/core/components/contact/contact.component.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/core/components/contact/contact.component.spec.ts b/src/app/core/components/contact/contact.component.spec.ts index 68b88cac..5e7f20af 100644 --- a/src/app/core/components/contact/contact.component.spec.ts +++ b/src/app/core/components/contact/contact.component.spec.ts @@ -2,9 +2,10 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ContactComponent } from './contact.component'; import { ReactiveFormsModule } from '@angular/forms'; -import { EmailService, NotificationService } from '../../services'; +import { EmailService, NotificationService, NavigationHistoryService } from '../../services'; import { BehaviorSubject, of } from 'rxjs'; import { Email } from '../../models'; +import { RouterTestingModule } from '@angular/router/testing'; export class NotificationServiceMock { @@ -40,6 +41,7 @@ describe('ContactComponent', () => { TestBed.configureTestingModule({ imports: [ ReactiveFormsModule, + RouterTestingModule, ], providers: [ { @@ -50,6 +52,7 @@ describe('ContactComponent', () => { provide: NotificationService, useClass: NotificationServiceMock, }, + NavigationHistoryService, ], declarations: [ContactComponent], }) -- GitLab