File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1938,7 +1938,7 @@ describe('IgxPivotGrid #pivotGrid', () => {
19381938 expect ( pivotGrid . rowDimensionWidthToPixels ( rowDimension ) ) . toBe ( 158 ) ;
19391939 } ) ;
19401940
1941- it ( 'should auto-size row dimension when width is set to auto.' , ( ) => {
1941+ it ( 'should auto-size row dimension when width is set to auto.' , fakeAsync ( ( ) => {
19421942 const pivotGrid = fixture . componentInstance . pivotGrid ;
19431943 let rowDimension = pivotGrid . pivotConfiguration . rows [ 0 ] ;
19441944 expect ( rowDimension . width ) . toBeUndefined ( ) ;
@@ -1976,11 +1976,12 @@ describe('IgxPivotGrid #pivotGrid', () => {
19761976 } ;
19771977
19781978 fixture . detectChanges ( ) ;
1979+ tick ( 200 ) ;
19791980 rowDimension = pivotGrid . pivotConfiguration . rows [ 0 ] ;
19801981 expect ( rowDimension . autoWidth ) . toBe ( 158 ) ;
19811982 expect ( rowDimension . width ) . toBe ( 'auto' ) ;
19821983 expect ( pivotGrid . rowDimensionWidthToPixels ( rowDimension ) ) . toBe ( 158 ) ;
1983- } ) ;
1984+ } ) ) ;
19841985
19851986 it ( 'should auto-generate pivot config when autoGenerateConfig is set to true.' , ( ) => {
19861987 const pivotGrid = fixture . componentInstance . pivotGrid ;
You can’t perform that action at this time.
0 commit comments