From 7de9d7284d2134a42fd6449054c30825b086f85d Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 17 Nov 2016 22:23:07 +0100 Subject: [PATCH] more assertions for test for #603 --- test/observables.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/observables.js b/test/observables.js index dc269b2dd..d3fbffa7e 100644 --- a/test/observables.js +++ b/test/observables.js @@ -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)