Skip to content

Commit 0758e3e

Browse files
cncolderjonathanong
authored andcommitted
fix obs and si order test
1 parent 1aa7b1c commit 0758e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ describe('Polyfills', function () {
254254

255255
describe('objectobserve', function () {
256256
it('above setimmediate', function () {
257-
var oidx = db.polyfills.polyfills.indexOf(db.polyfills.polyfill.oobs)
257+
var oidx = db.polyfills.polyfills.indexOf(db.polyfills.polyfill.obs)
258258
var sidx = db.polyfills.polyfills.indexOf(db.polyfills.polyfill.si)
259-
assert(oidx < sidx)
259+
assert(~oidx && ~sidx && oidx < sidx)
260260
})
261261
})
262262

0 commit comments

Comments
 (0)