@@ -219,7 +219,7 @@ describe('flex directive', () => {
219219 }
220220 } ) ;
221221
222- it ( 'should not work with non-direct-parent fxLayouts' , async ( ( ) => {
222+ it ( 'should work with non-direct-parent fxLayouts' , async ( ( ) => {
223223 componentWithTemplate ( `
224224 <div fxLayout='column'>
225225 <div class='test'>
@@ -235,7 +235,7 @@ describe('flex directive', () => {
235235 // The parent flex-direction not found;
236236 // A flex-direction should have been auto-injected to the parent...
237237 // 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 ) ;
239239 expectEl ( element ) . toHaveStyle ( { 'min-width' : '40px' } , styler ) ;
240240 expectEl ( element ) . not . toHaveStyle ( { 'min-height' : '40px' } , styler ) ;
241241 } ) ;
@@ -686,7 +686,7 @@ describe('flex directive', () => {
686686 ) ;
687687 } ) ;
688688
689- describe ( 'with flex token enabled ' , ( ) => {
689+ describe ( 'with flex token disabled ' , ( ) => {
690690 beforeEach ( ( ) => {
691691 jasmine . addMatchers ( customMatchers ) ;
692692
@@ -697,7 +697,7 @@ describe('flex directive', () => {
697697 providers : [
698698 MockMatchMediaProvider ,
699699 { provide : SERVER_TOKEN , useValue : true } ,
700- { provide : ADD_FLEX_STYLES , useValue : true } ,
700+ { provide : ADD_FLEX_STYLES , useValue : false } ,
701701 ]
702702 } ) ;
703703 } ) ;
@@ -718,7 +718,7 @@ describe('flex directive', () => {
718718 // The parent flex-direction not found;
719719 // A flex-direction should have been auto-injected to the parent...
720720 // 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 ) ;
722722 expectEl ( element ) . toHaveStyle ( { 'min-width' : '40px' } , styler ) ;
723723 expectEl ( element ) . not . toHaveStyle ( { 'min-height' : '40px' } , styler ) ;
724724 } ) ;
@@ -758,7 +758,7 @@ describe('flex directive', () => {
758758 // The parent flex-direction not found;
759759 // A flex-direction should have been auto-injected to the parent...
760760 // 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' ) ;
762762 expectEl ( element ) . toHaveStyle ( { 'min-width' : '40px' } , styler ) ;
763763 expectEl ( element ) . not . toHaveStyle ( { 'min-height' : '40px' } , styler ) ;
764764 } ) ;
0 commit comments