|
|
@@ -1,6 +1,8 @@
|
|
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
import { NgxPaginationModule } from 'ngx-pagination';
|
|
|
|
|
|
+import { TestingCommonModule } from '../../../../testing/testing-common.module';
|
|
|
+import { ItemsPerPageControlsComponent } from '../items-per-page-controls/items-per-page-controls.component';
|
|
|
import { PaginationControlsComponent } from '../pagination-controls/pagination-controls.component';
|
|
|
|
|
|
import { DataTableColumnComponent } from './data-table-column.component';
|
|
|
@@ -12,8 +14,13 @@ describe('DataTableComponent', () => {
|
|
|
|
|
|
beforeEach(async(() => {
|
|
|
TestBed.configureTestingModule({
|
|
|
- imports: [NgxPaginationModule],
|
|
|
- declarations: [DataTableComponent, DataTableColumnComponent, PaginationControlsComponent],
|
|
|
+ imports: [NgxPaginationModule, TestingCommonModule],
|
|
|
+ declarations: [
|
|
|
+ DataTableComponent,
|
|
|
+ DataTableColumnComponent,
|
|
|
+ PaginationControlsComponent,
|
|
|
+ ItemsPerPageControlsComponent,
|
|
|
+ ],
|
|
|
}).compileComponents();
|
|
|
}));
|
|
|
|