Fixed 2 tests
This commit is contained in:
committed by
Erik Tiekstra
parent
dfa1f1881d
commit
d36e00c5a7
@@ -1,10 +1,12 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
|
||||||
describe('AppComponent', () => {
|
describe('AppComponent', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [AppComponent],
|
declarations: [AppComponent],
|
||||||
|
imports: [RouterTestingModule],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,19 @@
|
|||||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { SkipToContentComponent } from './skip-to-content.component';
|
import { SkipToContentComponent } from './skip-to-content.component';
|
||||||
|
|
||||||
|
|
||||||
describe('SkipToContentComponent', () => {
|
describe('SkipToContentComponent', () => {
|
||||||
let component: SkipToContentComponent;
|
let component: SkipToContentComponent;
|
||||||
let fixture: ComponentFixture<SkipToContentComponent>;
|
let fixture: ComponentFixture<SkipToContentComponent>;
|
||||||
|
|
||||||
beforeEach(waitForAsync(() => {
|
beforeEach(
|
||||||
TestBed.configureTestingModule({
|
waitForAsync(() => {
|
||||||
declarations: [SkipToContentComponent],
|
TestBed.configureTestingModule({
|
||||||
}).compileComponents();
|
declarations: [SkipToContentComponent],
|
||||||
}));
|
imports: [RouterTestingModule],
|
||||||
|
}).compileComponents();
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(SkipToContentComponent);
|
fixture = TestBed.createComponent(SkipToContentComponent);
|
||||||
|
|||||||
Reference in New Issue
Block a user