diff --git a/test/specs/modules/Sticky/Sticky-test.js b/test/specs/modules/Sticky/Sticky-test.js index 36fdea9f07..c4155a2c8f 100644 --- a/test/specs/modules/Sticky/Sticky-test.js +++ b/test/specs/modules/Sticky/Sticky-test.js @@ -404,8 +404,7 @@ describe('Sticky', () => { sandbox.stub(window, 'requestAnimationFrame').callsFake(fn => setTimeout(fn, 0)) sandbox.stub(window, 'cancelAnimationFrame').callsFake(id => clearTimeout(id)) - const wrapper = mount() - const instance = renderedComponent.instance() + const instance = wrapperMount().instance() const update = sandbox.spy(instance, 'update') domEvent.resize(window)