8000 fix test coverage · justnull/vue@2350a01 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2350a01

Browse files
committed
fix test coverage
1 parent c7cfd59 commit 2350a01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/specs/transition/transition_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ if (_.inBrowser && !_.isIE9) {
192192
expect(hooks.afterEnter).toHaveBeenCalled()
193193
expect(el.classList.contains('test-no-trans-enter')).toBe(false)
194194
// wait until transition.justEntered flag is off
195-
_.nextTick(function () {
195+
setTimeout(function () {
196196
transition.apply(el, -1, op, vm, cb)
197197
expect(hooks.beforeLeave).toHaveBeenCalled()
198198
expect(hooks.leave).toHaveBeenCalled()
@@ -203,7 +203,7 @@ if (_.inBrowser && !_.isIE9) {
203203
expect(el.classList.contains('test-no-trans-leave')).toBe(false)
204204
done()
205205
})
206-
})
206+
}, 17)
207207
})
208208
})
209209

0 commit comments

Comments
 (0)
0