From 4edf50ed9c6fb49303d4cc193c8357f3c21c4204 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 29 Sep 2016 09:38:41 +0200 Subject: [PATCH] Fixed broken unit test, fixes pr #582 --- test/action.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/action.js b/test/action.js index 0f574657d..905defa6c 100644 --- a/test/action.js +++ b/test/action.js @@ -330,7 +330,9 @@ test('action in autorun does not keep / make computed values alive', t => { callComputedTwice() t.equal(calls, 5) - runWithMemoizing(mobx.action(callComputedTwice)) + runWithMemoizing(function() { + mobx.runInAction(callComputedTwice) + }) t.equal(calls, 6) callComputedTwice()