File tree 1 file changed +1
-4
lines changed
tests/integration/modifiers
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { clearRender , render } from '@ember/test-helpers' ;
2
2
import { module , test } from 'qunit' ;
3
-
4
3
import { hbs } from 'ember-cli-htmlbars' ;
5
4
import { setupRenderingTest } from 'ember-qunit' ;
6
5
import sinon from 'sinon' ;
7
6
8
7
module ( 'Integration | Modifier | scroll-into-view' , function ( hooks ) {
9
8
setupRenderingTest ( hooks ) ;
10
- const sandbox = sinon . createSandbox ( ) ;
11
9
12
10
hooks . beforeEach ( function ( ) {
13
- this . scrollIntoViewSpy = sandbox . spy ( Element . prototype , 'scrollIntoView' ) ;
11
+ this . scrollIntoViewSpy = sinon . spy ( Element . prototype , 'scrollIntoView' ) ;
14
12
} ) ;
15
13
16
14
hooks . afterEach ( function ( ) {
17
15
this . scrollIntoViewSpy = null ;
18
- sandbox . restore ( ) ;
19
16
} ) ;
20
17
21
18
test ( 'it renders and passes options when shouldScroll is true' , async function ( assert ) {
You can’t perform that action at this time.
0 commit comments