Skip to content

Commit f561e0c

Browse files
Fix for Vue 2.0 compatiblity
1 parent 3fd91b2 commit f561e0c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,14 @@ test("Handle errors in computed properties", t => {
160160
})
161161
t.equal(vm.a, null)
162162
t.equal(testErrorLog.length, 0)
163-
Vue.nextTick(() => {
164-
t.equal(vm.a, null)
165-
t.equal(testErrorLog.length, 1)
166-
})
163+
Vue.nextTick(() =>
164+
// In Vue 2.0 it takes an additional tick before
165+
// we see the error
166+
Vue.nextTick(() => {
167+
t.equal(vm.a, null)
168+
t.equal(testErrorLog.length, 1)
169+
})
170+
)
167171
})
168172

169173
test("Handle multiple asyncComputed objects the same way normal as \

0 commit comments

Comments
 (0)