Skip to content

Commit 7eddaca

Browse files
committed
fix test coverage
1 parent bef24fb commit 7eddaca

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
@@ -191,7 +191,7 @@ if (_.inBrowser && !_.isIE9) {
191191
expect(hooks.afterEnter).toHaveBeenCalled()
192192
expect(el.classList.contains('test-no-trans-enter')).toBe(false)
193193
// wait until transition.justEntered flag is off
194-
_.nextTick(function () {
194+
setTimeout(function () {
195195
transition.apply(el, -1, op, vm, cb)
196196
expect(hooks.beforeLeave).toHaveBeenCalled()
197197
expect(hooks.leave).toHaveBeenCalled()
@@ -202,7 +202,7 @@ if (_.inBrowser && !_.isIE9) {
202202
expect(el.classList.contains('test-no-trans-leave')).toBe(false)
203203
done()
204204
})
205-
})
205+
}, 17)
206206
})
207207
})
208208

0 commit comments

Comments
 (0)