Skip to content

Commit

Permalink
more assertions for test for #603
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Nov 17, 2016
1 parent e32ed82 commit 7de9d72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/observables.js
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,14 @@ test('603 - transaction should not kill reactions', t => {

}

t.equal(a.observers.length, 1)
t.equal(d.$mobx.observing.length, 1)
t.deepEqual(__mobxGlobal.inBatch, 0)
t.deepEqual(__mobxGlobal.inTransaction, 0)
t.deepEqual(__mobxGlobal.pendingReactions.length, 0)
t.deepEqual(__mobxGlobal.pendingUnobservations.length, 0)
t.deepEqual(__mobxGlobal.trackingDerivation, null)

t.equal(b, 2)
a.set(3)
t.equal(b, 3)
Expand Down

0 comments on commit 7de9d72

Please sign in to comment.