Evan You 10 лет назад
Родитель
Сommit
2350a011cb
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      test/unit/specs/transition/transition_spec.js

+ 2 - 2
test/unit/specs/transition/transition_spec.js

@@ -192,7 +192,7 @@ if (_.inBrowser && !_.isIE9) {
           expect(hooks.afterEnter).toHaveBeenCalled()
           expect(el.classList.contains('test-no-trans-enter')).toBe(false)
           // wait until transition.justEntered flag is off
-          _.nextTick(function () {
+          setTimeout(function () {
             transition.apply(el, -1, op, vm, cb)
             expect(hooks.beforeLeave).toHaveBeenCalled()
             expect(hooks.leave).toHaveBeenCalled()
@@ -203,7 +203,7 @@ if (_.inBrowser && !_.isIE9) {
               expect(el.classList.contains('test-no-trans-leave')).toBe(false)
               done()
             })
-          })
+          }, 17)
         })
       })