@@ -219,7 +219,7 @@ describe('flex directive', () => {
219
219
}
220
220
} ) ;
221
221
222
- it ( 'should not work with non-direct-parent fxLayouts' , async ( ( ) => {
222
+ it ( 'should work with non-direct-parent fxLayouts' , async ( ( ) => {
223
223
componentWithTemplate ( `
224
224
<div fxLayout='column'>
225
225
<div class='test'>
@@ -235,7 +235,7 @@ describe('flex directive', () => {
235
235
// The parent flex-direction not found;
236
236
// A flex-direction should have been auto-injected to the parent...
237
237
// fallback to 'row' and set child width styles accordingly
238
- expectEl ( parent ) . not . toHaveStyle ( { 'flex-direction' : 'row' } , styler ) ;
238
+ expectEl ( parent ) . toHaveStyle ( { 'flex-direction' : 'row' } , styler ) ;
239
239
expectEl ( element ) . toHaveStyle ( { 'min-width' : '40px' } , styler ) ;
240
240
expectEl ( element ) . not . toHaveStyle ( { 'min-height' : '40px' } , styler ) ;
241
241
} ) ;
@@ -686,7 +686,7 @@ describe('flex directive', () => {
686
686
) ;
687
687
} ) ;
688
688
689
- describe ( 'with flex token enabled ' , ( ) => {
689
+ describe ( 'with flex token disabled ' , ( ) => {
690
690
beforeEach ( ( ) => {
691
691
jasmine . addMatchers ( customMatchers ) ;
692
692
@@ -697,7 +697,7 @@ describe('flex directive', () => {
697
697
providers : [
698
698
MockMatchMediaProvider ,
699
699
{ provide : SERVER_TOKEN , useValue : true } ,
700
- { provide : ADD_FLEX_STYLES , useValue : true } ,
700
+ { provide : ADD_FLEX_STYLES , useValue : false } ,
701
701
]
702
702
} ) ;
703
703
} ) ;
@@ -718,7 +718,7 @@ describe('flex directive', () => {
718
718
// The parent flex-direction not found;
719
719
// A flex-direction should have been auto-injected to the parent...
720
720
// fallback to 'row' and set child width styles accordingly
721
- expectEl ( parent ) . toHaveStyle ( { 'flex-direction' : 'row' } , styler ) ;
721
+ expectEl ( parent ) . not . toHaveStyle ( { 'flex-direction' : 'row' } , styler ) ;
722
722
expectEl ( element ) . toHaveStyle ( { 'min-width' : '40px' } , styler ) ;
723
723
expectEl ( element ) . not . toHaveStyle ( { 'min-height' : '40px' } , styler ) ;
724
724
} ) ;
@@ -758,7 +758,7 @@ describe('flex directive', () => {
758
758
// The parent flex-direction not found;
759
759
// A flex-direction should have been auto-injected to the parent...
760
760
// fallback to 'row' and set child width styles accordingly
761
- expectEl ( parent ) . not . toHaveStyle ( { '-webkit-flex-direction' : 'row' } , styler ) ;
761
+ expect ( parent . nativeElement . getAttribute ( 'style' ) ) . not . toContain ( '-webkit-flex-direction' ) ;
762
762
expectEl ( element ) . toHaveStyle ( { 'min-width' : '40px' } , styler ) ;
763
763
expectEl ( element ) . not . toHaveStyle ( { 'min-height' : '40px' } , styler ) ;
764
764
} ) ;
0 commit comments