@@ -29,8 +29,8 @@ describe('GlobalPositonStrategy', () => {
2929 expect ( elementStyle . marginBottom ) . toBe ( '' ) ;
3030 expect ( elementStyle . marginRight ) . toBe ( '' ) ;
3131
32- expect ( parentStyle . justifyContent ) . toBe ( 'flex-start' ) ;
3332 expect ( parentStyle . alignItems ) . toBe ( 'flex-start' ) ;
33+ expect ( parentStyle . justifyContent ) . toBe ( 'flex-start' ) ;
3434 } ) ;
3535
3636 it ( 'should position the element to the (bottom, right) with an offset' , ( ) => {
@@ -44,8 +44,8 @@ describe('GlobalPositonStrategy', () => {
4444 expect ( elementStyle . marginBottom ) . toBe ( '70px' ) ;
4545 expect ( elementStyle . marginRight ) . toBe ( '15em' ) ;
4646
47- expect ( parentStyle . justifyContent ) . toBe ( 'flex-end' ) ;
4847 expect ( parentStyle . alignItems ) . toBe ( 'flex-end' ) ;
48+ expect ( parentStyle . justifyContent ) . toBe ( 'flex-end' ) ;
4949 } ) ;
5050
5151 it ( 'should overwrite previously applied positioning' , ( ) => {
@@ -60,8 +60,8 @@ describe('GlobalPositonStrategy', () => {
6060 expect ( elementStyle . marginBottom ) . toBe ( '' ) ;
6161 expect ( elementStyle . marginRight ) . toBe ( '' ) ;
6262
63- expect ( parentStyle . justifyContent ) . toBe ( 'flex-start' ) ;
6463 expect ( parentStyle . alignItems ) . toBe ( 'flex-start' ) ;
64+ expect ( parentStyle . justifyContent ) . toBe ( 'flex-start' ) ;
6565
6666 strategy . bottom ( '70px' ) . right ( '15em' ) . apply ( ) ;
6767
@@ -70,17 +70,17 @@ describe('GlobalPositonStrategy', () => {
7070 expect ( element . style . marginBottom ) . toBe ( '70px' ) ;
7171 expect ( element . style . marginRight ) . toBe ( '15em' ) ;
7272
73- expect ( parentStyle . justifyContent ) . toBe ( 'flex-end' ) ;
7473 expect ( parentStyle . alignItems ) . toBe ( 'flex-end' ) ;
74+ expect ( parentStyle . justifyContent ) . toBe ( 'flex-end' ) ;
7575 } ) ;
7676
7777 it ( 'should center the element' , ( ) => {
7878 strategy . centerHorizontally ( ) . centerVertically ( ) . apply ( ) ;
7979
8080 let parentStyle = ( element . parentNode as HTMLElement ) . style ;
8181
82- expect ( parentStyle . justifyContent ) . toBe ( 'center' ) ;
8382 expect ( parentStyle . alignItems ) . toBe ( 'center' ) ;
83+ expect ( parentStyle . justifyContent ) . toBe ( 'center' ) ;
8484 } ) ;
8585
8686 it ( 'should center the element with an offset' , ( ) => {
@@ -92,8 +92,8 @@ describe('GlobalPositonStrategy', () => {
9292 expect ( elementStyle . marginLeft ) . toBe ( '10px' ) ;
9393 expect ( elementStyle . marginTop ) . toBe ( '15px' ) ;
9494
95- expect ( parentStyle . justifyContent ) . toBe ( 'center' ) ;
9695 expect ( parentStyle . alignItems ) . toBe ( 'center' ) ;
96+ expect ( parentStyle . justifyContent ) . toBe ( 'center' ) ;
9797 } ) ;
9898
9999 it ( 'should make the element position: static' , ( ) => {
@@ -137,13 +137,13 @@ describe('GlobalPositonStrategy', () => {
137137 strategy . centerHorizontally ( ) . width ( '100%' ) . apply ( ) ;
138138
139139 expect ( element . style . marginLeft ) . toBe ( '0px' ) ;
140- expect ( ( element . parentNode as HTMLElement ) . style . justifyContent ) . toBe ( 'flex-start' ) ;
140+ expect ( ( element . parentNode as HTMLElement ) . style . alignItems ) . toBe ( 'flex-start' ) ;
141141 } ) ;
142142
143143 it ( 'should reset the vertical position and offset when the height is 100%' , ( ) => {
144144 strategy . centerVertically ( ) . height ( '100%' ) . apply ( ) ;
145145
146146 expect ( element . style . marginTop ) . toBe ( '0px' ) ;
147- expect ( ( element . parentNode as HTMLElement ) . style . alignItems ) . toBe ( 'flex-start' ) ;
147+ expect ( ( element . parentNode as HTMLElement ) . style . justifyContent ) . toBe ( 'flex-start' ) ;
148148 } ) ;
149149} ) ;
0 commit comments