Skip to content

Commit dc61ed7

Browse files
author
Mateus Medeiros
committed
Fix angular tests
1 parent 2333d08 commit dc61ed7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/webapp/src/app/app.component.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import { TestBed } from '@angular/core/testing';
2+
import { RouterTestingModule } from '@angular/router/testing';
23
import { AppComponent } from './app.component';
34

45
describe('AppComponent', () => {
6+
beforeEach(async () => {
7+
await TestBed.configureTestingModule({
8+
imports: [AppComponent, RouterTestingModule],
9+
}).compileComponents();
10+
});
11+
512
it('should create the app', () => {
613
const fixture = TestBed.createComponent(AppComponent);
714
const app = fixture.componentInstance;

0 commit comments

Comments
 (0)