Skip to content

Commit 0a21077

Browse files
authored
Merge pull request #1100 from elwayman02/sinon-sandbox
2 parents ac258ed + d23dd7a commit 0a21077

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/integration/modifiers/scroll-into-view-test.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
import { clearRender, render } from '@ember/test-helpers';
22
import { module, test } from 'qunit';
3-
43
import { hbs } from 'ember-cli-htmlbars';
54
import { setupRenderingTest } from 'ember-qunit';
65
import sinon from 'sinon';
76

87
module('Integration | Modifier | scroll-into-view', function (hooks) {
98
setupRenderingTest(hooks);
10-
const sandbox = sinon.createSandbox();
119

1210
hooks.beforeEach(function () {
13-
this.scrollIntoViewSpy = sandbox.spy(Element.prototype, 'scrollIntoView');
11+
this.scrollIntoViewSpy = sinon.spy(Element.prototype, 'scrollIntoView');
1412
});
1513

1614
hooks.afterEach(function () {
1715
this.scrollIntoViewSpy = null;
18-
sandbox.restore();
1916
});
2017

2118
test('it renders and passes options when shouldScroll is true', async function (assert) {

0 commit comments

Comments
 (0)