Skip to content

Commit

Permalink
Fixed broken unit test, fixes pr #582
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Sep 29, 2016
1 parent 07765e4 commit 4edf50e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4edf50e

Please sign in to comment.