@@ -42,8 +42,8 @@ describe('GlobalPositonStrategy', () => {
4242 expect ( elementStyle . marginBottom ) . toBe ( '' ) ;
4343 expect ( elementStyle . marginRight ) . toBe ( '' ) ;
4444
45- expect ( parentStyle . alignItems ) . toBe ( 'flex-start' ) ;
4645 expect ( parentStyle . justifyContent ) . toBe ( 'flex-start' ) ;
46+ expect ( parentStyle . alignItems ) . toBe ( 'flex-start' ) ;
4747 } ) ;
4848
4949 it ( 'should position the element to the (bottom, right) with an offset' , ( ) => {
@@ -57,8 +57,8 @@ describe('GlobalPositonStrategy', () => {
5757 expect ( elementStyle . marginBottom ) . toBe ( '70px' ) ;
5858 expect ( elementStyle . marginRight ) . toBe ( '15em' ) ;
5959
60- expect ( parentStyle . alignItems ) . toBe ( 'flex-end' ) ;
6160 expect ( parentStyle . justifyContent ) . toBe ( 'flex-end' ) ;
61+ expect ( parentStyle . alignItems ) . toBe ( 'flex-end' ) ;
6262 } ) ;
6363
6464 it ( 'should overwrite previously applied positioning' , ( ) => {
@@ -73,8 +73,8 @@ describe('GlobalPositonStrategy', () => {
7373 expect ( elementStyle . marginBottom ) . toBe ( '' ) ;
7474 expect ( elementStyle . marginRight ) . toBe ( '' ) ;
7575
76- expect ( parentStyle . alignItems ) . toBe ( 'flex-start' ) ;
7776 expect ( parentStyle . justifyContent ) . toBe ( 'flex-start' ) ;
77+ expect ( parentStyle . alignItems ) . toBe ( 'flex-start' ) ;
7878
7979 strategy . bottom ( '70px' ) . right ( '15em' ) . apply ( ) ;
8080
@@ -83,17 +83,17 @@ describe('GlobalPositonStrategy', () => {
8383 expect ( element . style . marginBottom ) . toBe ( '70px' ) ;
8484 expect ( element . style . marginRight ) . toBe ( '15em' ) ;
8585
86- expect ( parentStyle . alignItems ) . toBe ( 'flex-end' ) ;
8786 expect ( parentStyle . justifyContent ) . toBe ( 'flex-end' ) ;
87+ expect ( parentStyle . alignItems ) . toBe ( 'flex-end' ) ;
8888 } ) ;
8989
9090 it ( 'should center the element' , ( ) => {
9191 strategy . centerHorizontally ( ) . centerVertically ( ) . apply ( ) ;
9292
9393 let parentStyle = ( element . parentNode as HTMLElement ) . style ;
9494
95- expect ( parentStyle . alignItems ) . toBe ( 'center' ) ;
9695 expect ( parentStyle . justifyContent ) . toBe ( 'center' ) ;
96+ expect ( parentStyle . alignItems ) . toBe ( 'center' ) ;
9797 } ) ;
9898
9999 it ( 'should center the element with an offset' , ( ) => {
@@ -105,8 +105,8 @@ describe('GlobalPositonStrategy', () => {
105105 expect ( elementStyle . marginLeft ) . toBe ( '10px' ) ;
106106 expect ( elementStyle . marginTop ) . toBe ( '15px' ) ;
107107
108- expect ( parentStyle . alignItems ) . toBe ( 'center' ) ;
109108 expect ( parentStyle . justifyContent ) . toBe ( 'center' ) ;
109+ expect ( parentStyle . alignItems ) . toBe ( 'center' ) ;
110110 } ) ;
111111
112112 it ( 'should make the element position: static' , ( ) => {
@@ -150,14 +150,14 @@ describe('GlobalPositonStrategy', () => {
150150 strategy . centerHorizontally ( ) . width ( '100%' ) . apply ( ) ;
151151
152152 expect ( element . style . marginLeft ) . toBe ( '0px' ) ;
153- expect ( ( element . parentNode as HTMLElement ) . style . alignItems ) . toBe ( 'flex-start' ) ;
153+ expect ( ( element . parentNode as HTMLElement ) . style . justifyContent ) . toBe ( 'flex-start' ) ;
154154 } ) ;
155155
156156 it ( 'should reset the vertical position and offset when the height is 100%' , ( ) => {
157157 strategy . centerVertically ( ) . height ( '100%' ) . apply ( ) ;
158158
159159 expect ( element . style . marginTop ) . toBe ( '0px' ) ;
160- expect ( ( element . parentNode as HTMLElement ) . style . justifyContent ) . toBe ( 'flex-start' ) ;
160+ expect ( ( element . parentNode as HTMLElement ) . style . alignItems ) . toBe ( 'flex-start' ) ;
161161 } ) ;
162162
163163 it ( 'should not throw when attempting to apply after the overlay has been disposed' , ( ) => {
0 commit comments