@@ -42,8 +42,8 @@ describe('GlobalPositonStrategy', () => {
42
42
expect ( elementStyle . marginBottom ) . toBe ( '' ) ;
43
43
expect ( elementStyle . marginRight ) . toBe ( '' ) ;
44
44
45
- expect ( parentStyle . alignItems ) . toBe ( 'flex-start' ) ;
46
45
expect ( parentStyle . justifyContent ) . toBe ( 'flex-start' ) ;
46
+ expect ( parentStyle . alignItems ) . toBe ( 'flex-start' ) ;
47
47
} ) ;
48
48
49
49
it ( 'should position the element to the (bottom, right) with an offset' , ( ) => {
@@ -57,8 +57,8 @@ describe('GlobalPositonStrategy', () => {
57
57
expect ( elementStyle . marginBottom ) . toBe ( '70px' ) ;
58
58
expect ( elementStyle . marginRight ) . toBe ( '15em' ) ;
59
59
60
- expect ( parentStyle . alignItems ) . toBe ( 'flex-end' ) ;
61
60
expect ( parentStyle . justifyContent ) . toBe ( 'flex-end' ) ;
61
+ expect ( parentStyle . alignItems ) . toBe ( 'flex-end' ) ;
62
62
} ) ;
63
63
64
64
it ( 'should overwrite previously applied positioning' , ( ) => {
@@ -73,8 +73,8 @@ describe('GlobalPositonStrategy', () => {
73
73
expect ( elementStyle . marginBottom ) . toBe ( '' ) ;
74
74
expect ( elementStyle . marginRight ) . toBe ( '' ) ;
75
75
76
- expect ( parentStyle . alignItems ) . toBe ( 'flex-start' ) ;
77
76
expect ( parentStyle . justifyContent ) . toBe ( 'flex-start' ) ;
77
+ expect ( parentStyle . alignItems ) . toBe ( 'flex-start' ) ;
78
78
79
79
strategy . bottom ( '70px' ) . right ( '15em' ) . apply ( ) ;
80
80
@@ -83,17 +83,17 @@ describe('GlobalPositonStrategy', () => {
83
83
expect ( element . style . marginBottom ) . toBe ( '70px' ) ;
84
84
expect ( element . style . marginRight ) . toBe ( '15em' ) ;
85
85
86
- expect ( parentStyle . alignItems ) . toBe ( 'flex-end' ) ;
87
86
expect ( parentStyle . justifyContent ) . toBe ( 'flex-end' ) ;
87
+ expect ( parentStyle . alignItems ) . toBe ( 'flex-end' ) ;
88
88
} ) ;
89
89
90
90
it ( 'should center the element' , ( ) => {
91
91
strategy . centerHorizontally ( ) . centerVertically ( ) . apply ( ) ;
92
92
93
93
let parentStyle = ( element . parentNode as HTMLElement ) . style ;
94
94
95
- expect ( parentStyle . alignItems ) . toBe ( 'center' ) ;
96
95
expect ( parentStyle . justifyContent ) . toBe ( 'center' ) ;
96
+ expect ( parentStyle . alignItems ) . toBe ( 'center' ) ;
97
97
} ) ;
98
98
99
99
it ( 'should center the element with an offset' , ( ) => {
@@ -105,8 +105,8 @@ describe('GlobalPositonStrategy', () => {
105
105
expect ( elementStyle . marginLeft ) . toBe ( '10px' ) ;
106
106
expect ( elementStyle . marginTop ) . toBe ( '15px' ) ;
107
107
108
- expect ( parentStyle . alignItems ) . toBe ( 'center' ) ;
109
108
expect ( parentStyle . justifyContent ) . toBe ( 'center' ) ;
109
+ expect ( parentStyle . alignItems ) . toBe ( 'center' ) ;
110
110
} ) ;
111
111
112
112
it ( 'should make the element position: static' , ( ) => {
@@ -150,14 +150,14 @@ describe('GlobalPositonStrategy', () => {
150
150
strategy . centerHorizontally ( ) . width ( '100%' ) . apply ( ) ;
151
151
152
152
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' ) ;
154
154
} ) ;
155
155
156
156
it ( 'should reset the vertical position and offset when the height is 100%' , ( ) => {
157
157
strategy . centerVertically ( ) . height ( '100%' ) . apply ( ) ;
158
158
159
159
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' ) ;
161
161
} ) ;
162
162
163
163
it ( 'should not throw when attempting to apply after the overlay has been disposed' , ( ) => {
0 commit comments