Explorar o código

fix test coverage

Evan You %!s(int64=10) %!d(string=hai) anos
pai
achega
2350a011cb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)
         })
       })