Fix unit tests
All checks were successful
Core Repos/Homepage/pipeline/pr-master This commit looks good
Core Repos/Homepage/pipeline/head This commit looks good

This commit is contained in:
Cameron Cordes
2020-08-14 13:19:00 -04:00
parent 3039e7c400
commit 5885bda92c
2 changed files with 12 additions and 3 deletions

View File

@@ -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();
}));