Skip to content

Commit

Permalink
test(error): Add missing modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kilchenmann committed Jan 12, 2021
1 parent 686f1ce commit a49b63f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/main/error/error-handler.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { TestBed } from '@angular/core/testing';
import { MatDialogModule } from '@angular/material/dialog';
import { MatSnackBarModule } from '@angular/material/snack-bar';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ErrorHandlerService } from './error-handler.service';

describe('ErrorHandlerService', () => {
Expand All @@ -9,6 +10,7 @@ describe('ErrorHandlerService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
MatDialogModule,
MatSnackBarModule
]
Expand Down
4 changes: 4 additions & 0 deletions src/app/main/error/error.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { CommonModule } from '@angular/common';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MatIconModule } from '@angular/material/icon';
import { RouterTestingModule } from '@angular/router/testing';
import { ErrorComponent } from './error.component';

Expand All @@ -10,6 +12,8 @@ describe('ErrorComponent', () => {
TestBed.configureTestingModule({
declarations: [ErrorComponent],
imports: [
CommonModule,
MatIconModule,
RouterTestingModule
]
})
Expand Down

0 comments on commit a49b63f

Please sign in to comment.