@@ -17,8 +17,11 @@ import {NoopAnimationsModule} from '@angular/platform-browser/animations';
1717describe ( 'MDC-based MatTable' , ( ) => {
1818 beforeEach ( waitForAsync ( ( ) => {
1919 TestBed . configureTestingModule ( {
20- imports : [ MatTableModule , MatPaginatorModule , MatSortModule , NoopAnimationsModule ] ,
21- declarations : [
20+ imports : [
21+ MatTableModule ,
22+ MatPaginatorModule ,
23+ MatSortModule ,
24+ NoopAnimationsModule ,
2225 MatTableApp ,
2326 MatTableWithWhenRowApp ,
2427 ArrayDataSourceMatTableApp ,
@@ -707,6 +710,8 @@ class FakeDataSource extends DataSource<TestData> {
707710 <tr mat-footer-row *matFooterRowDef="columnsToRender"></tr>
708711 </table>
709712 ` ,
713+ standalone : true ,
714+ imports : [ MatTableModule , MatPaginatorModule , MatSortModule ] ,
710715} )
711716class MatTableApp {
712717 dataSource : FakeDataSource | null = new FakeDataSource ( ) ;
@@ -741,6 +746,8 @@ class MatTableApp {
741746 </tr>
742747 </table>
743748 ` ,
749+ standalone : true ,
750+ imports : [ MatTableModule , MatPaginatorModule , MatSortModule ] ,
744751} )
745752class NativeHtmlTableApp {
746753 dataSource : FakeDataSource | null = new FakeDataSource ( ) ;
@@ -794,6 +801,8 @@ class NativeHtmlTableApp {
794801 <tr mat-row *matRowDef="let row; columns: columnsToRender"></tr>
795802 </table>
796803 ` ,
804+ standalone : true ,
805+ imports : [ MatTableModule , MatPaginatorModule , MatSortModule ] ,
797806} )
798807class NestedTableApp {
799808 dataSource : FakeDataSource | null = new FakeDataSource ( ) ;
@@ -812,6 +821,8 @@ class NestedTableApp {
812821 <tr mat-row *matRowDef="let row; columns: columnsToRender"></tr>
813822 </table>
814823 ` ,
824+ standalone : true ,
825+ imports : [ MatTableModule , MatPaginatorModule , MatSortModule ] ,
815826} )
816827class StickyTableApp {
817828 dataSource = new FakeDataSource ( ) ;
@@ -839,6 +850,8 @@ class StickyTableApp {
839850 <tr mat-footer-row *matFooterRowDef="['column_a']"></tr>
840851 </table>
841852 ` ,
853+ standalone : true ,
854+ imports : [ MatTableModule , MatPaginatorModule , MatSortModule ] ,
842855} )
843856class MatTableWithWhenRowApp {
844857 multiTemplateDataRows = false ;
@@ -876,6 +889,8 @@ class MatTableWithWhenRowApp {
876889
877890 <mat-paginator [pageSize]="5"></mat-paginator>
878891 ` ,
892+ standalone : true ,
893+ imports : [ MatTableModule , MatPaginatorModule , MatSortModule ] ,
879894} )
880895class ArrayDataSourceMatTableApp implements AfterViewInit {
881896 underlyingDataSource = new FakeDataSource ( ) ;
@@ -928,6 +943,8 @@ class ArrayDataSourceMatTableApp implements AfterViewInit {
928943 <tr mat-row *matRowDef="let row; columns: columnsToRender"></tr>
929944 </table>
930945 ` ,
946+ standalone : true ,
947+ imports : [ MatTableModule , MatPaginatorModule , MatSortModule ] ,
931948} )
932949class MatTableWithSortApp implements OnInit {
933950 underlyingDataSource = new FakeDataSource ( ) ;
@@ -979,6 +996,8 @@ class MatTableWithSortApp implements OnInit {
979996
980997 <mat-paginator [pageSize]="5"></mat-paginator>
981998 ` ,
999+ standalone : true ,
1000+ imports : [ MatTableModule , MatPaginatorModule , MatSortModule ] ,
9821001} )
9831002class MatTableWithPaginatorApp implements OnInit {
9841003 underlyingDataSource = new FakeDataSource ( ) ;
@@ -1020,6 +1039,8 @@ class MatTableWithPaginatorApp implements OnInit {
10201039 </ng-container>
10211040 </table>
10221041 ` ,
1042+ standalone : true ,
1043+ imports : [ MatTableModule , MatPaginatorModule , MatSortModule ] ,
10231044} )
10241045class TableWithNgContainerRow {
10251046 dataSource : FakeDataSource | null = new FakeDataSource ( ) ;
@@ -1057,6 +1078,8 @@ class TableWithNgContainerRow {
10571078 <mat-footer-row *matFooterRowDef="columnsToRender"></mat-footer-row>
10581079 </mat-table>
10591080 ` ,
1081+ standalone : true ,
1082+ imports : [ MatTableModule , MatPaginatorModule , MatSortModule ] ,
10601083} )
10611084class MatFlexTableApp {
10621085 dataSource : FakeDataSource | null = new FakeDataSource ( ) ;
0 commit comments