Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Mar 31, 2020
1 parent bd95d65 commit 9c4854b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

import { TableRowExpandedService } from '../table-row/table-row-expaned-service';
import { TableCellExpanderComponent } from './table-cell-expander.component';

describe('TableCellExpanderComponent', () => {
Expand All @@ -8,9 +10,15 @@ describe('TableCellExpanderComponent', () => {

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ TableCellExpanderComponent ]
declarations: [TableCellExpanderComponent],
imports: [
NoopAnimationsModule
],
providers: [
TableRowExpandedService
]
})
.compileComponents();
.compileComponents();
}));

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { of as observableOf } from 'rxjs';

import { CoreModule } from '../../../../../core/core.module';
import { TableRowExpandedService } from './table-row-expaned-service';
import { TableRowComponent } from './table-row.component';


Expand Down Expand Up @@ -46,6 +47,9 @@ describe('TableRowComponent', () => {
CoreModule,
CdkTableModule,
NoopAnimationsModule,
],
providers: [
TableRowExpandedService
]
})
.compileComponents();
Expand Down

0 comments on commit 9c4854b

Please sign in to comment.