|
1 | 1 | import {AfterViewInit, Component, OnInit, ViewChild} from '@angular/core'; |
2 | | -import { |
3 | | - waitForAsync, |
4 | | - ComponentFixture, |
5 | | - fakeAsync, |
6 | | - flushMicrotasks, |
7 | | - TestBed, |
8 | | - tick, |
9 | | -} from '@angular/core/testing'; |
| 2 | +import {ComponentFixture, fakeAsync, flushMicrotasks, TestBed, tick} from '@angular/core/testing'; |
10 | 3 | import {MatTable, MatTableDataSource, MatTableModule} from './index'; |
11 | 4 | import {DataSource} from '@angular/cdk/table'; |
12 | 5 | import {BehaviorSubject, Observable} from 'rxjs'; |
13 | 6 | import {MatSort, MatSortHeader, MatSortModule} from '../sort'; |
14 | 7 | import {MatPaginator, MatPaginatorModule} from '../paginator'; |
15 | 8 |
|
16 | 9 | describe('MatTable', () => { |
17 | | - beforeEach(waitForAsync(() => { |
18 | | - TestBed.configureTestingModule({ |
19 | | - imports: [ |
20 | | - MatTableModule, |
21 | | - MatPaginatorModule, |
22 | | - MatSortModule, |
23 | | - MatTableApp, |
24 | | - MatTableWithWhenRowApp, |
25 | | - ArrayDataSourceMatTableApp, |
26 | | - NativeHtmlTableApp, |
27 | | - MatTableWithSortApp, |
28 | | - MatTableWithPaginatorApp, |
29 | | - StickyTableApp, |
30 | | - TableWithNgContainerRow, |
31 | | - NestedTableApp, |
32 | | - MatFlexTableApp, |
33 | | - ], |
34 | | - }); |
35 | | - })); |
36 | | - |
37 | 10 | describe('with basic data source', () => { |
38 | 11 | it('should be able to create a table with the right content and without when row', () => { |
39 | 12 | let fixture = TestBed.createComponent(MatTableApp); |
|
0 commit comments