File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- import { assign } from '@ember/polyfills' ;
2
1
import { getContext } from '@ember/test-helpers' ;
3
2
4
3
export function setupForPositioning ( align = 'left' ) {
5
- assign ( getContext ( ) . element . querySelector ( '#wrapper' ) . style , {
4
+ Object . assign ( getContext ( ) . element . querySelector ( '#wrapper' ) . style , {
6
5
position : 'absolute' ,
7
6
bottom : 0 ,
8
7
[ align ] : 0 ,
@@ -12,13 +11,13 @@ export function setupForPositioning(align = 'left') {
12
11
overflow : 'hidden' ,
13
12
} ) ;
14
13
15
- assign ( document . getElementById ( 'ember-testing' ) . style , {
14
+ Object . assign ( document . getElementById ( 'ember-testing' ) . style , {
16
15
transform : 'none' ,
17
16
} ) ;
18
17
19
18
// popper.js v1 seems to have issues with the positioning of our testing container since ember-qunit v5
20
19
// Could be related to https://github.com/popperjs/popper-core/issues/670
21
- assign ( document . getElementById ( 'ember-testing-container' ) . style , {
20
+ Object . assign ( document . getElementById ( 'ember-testing-container' ) . style , {
22
21
position : 'relative' ,
23
22
top : 0 ,
24
23
} ) ;
You can’t perform that action at this time.
0 commit comments