Fix issues with front-end testing

This commit is contained in:
Mac Rae 2020-01-06 13:29:56 +00:00 committed by Dillon-Brown
parent e5b17089f2
commit bc0c674603

View file

@ -3,16 +3,18 @@ import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
import {RouterTestingModule} from '@angular/router/testing'; import {RouterTestingModule} from '@angular/router/testing';
import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing'; import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
import {NavbarUiComponent} from './navbar.component'; import {NavbarUiComponent} from './navbar.component';
describe('NavbarComponent', () => { describe('NavbarUiComponent', () => {
let component: NavbarUiComponent; let component: NavbarUiComponent;
let fixture: ComponentFixture<NavbarUiComponent>; let fixture: ComponentFixture<NavbarUiComponent>;
beforeEach(async(() => { beforeEach(async(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA], schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [RouterTestingModule, HttpClientTestingModule], imports: [RouterTestingModule, HttpClientTestingModule, NgbModule],
declarations: [NavbarUiComponent] declarations: [NavbarUiComponent]
}) })
.compileComponents(); .compileComponents();