Fix unit tests
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
|
||||
import { ContactComponent } from './contact.component';
|
||||
import { Angulartics2 } from 'angulartics2';
|
||||
|
||||
describe('ContactComponent', () => {
|
||||
let component: ContactComponent;
|
||||
let fixture: ComponentFixture<ContactComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
const analytics = jasmine.createSpyObj('piwik', ['startTracking']);
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ ContactComponent ]
|
||||
imports: [
|
||||
RouterTestingModule,
|
||||
],
|
||||
declarations: [ ContactComponent ],
|
||||
providers: [
|
||||
{ provide: Angulartics2, useValue: analytics },
|
||||
],
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user