We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59f43e commit 3d1fd12Copy full SHA for 3d1fd12
test/pagemode.test.js
@@ -12,6 +12,9 @@ describe(theme, () => {
12
const initStart = 100
13
const listCount = 1000
14
const spy = sinon.stub()
15
+
16
+ let windowScrollTo = window.scrollTo
17
18
const wrapper = mount({
19
template: `
20
<div id="app" style="width: 300px;">
@@ -48,11 +51,19 @@ describe(theme, () => {
48
51
}
49
52
},
50
53
54
+ beforeCreate () {
55
+ // Error: Not implemented: window.scrollTo
56
+ window.scrollTo = () => {}
57
+ },
58
59
beforeDestroy () {
60
spy()
61
+ window.scrollTo = windowScrollTo
62
63
})
64
65
66
67
it(`[${theme}] check list build success.`, () => {
68
expect(wrapper.find('.for-item').exists()).toBe(true)
69
expect(wrapper.find('.for-item-text').exists()).toBe(true)
0 commit comments