Skip to content

Commit

Permalink
add 1 computed test to mobxjs#1121
Browse files Browse the repository at this point in the history
  • Loading branch information
koretskiyav committed Sep 13, 2017
1 parent 91e2f26 commit ac3d71f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/observables.js
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ test("Issue 1092 - We should be able to define observable on all siblings", t =>
})

test("Issue 1121 - It should be possible to redefine a computed property", t => {
t.plan(3)
t.plan(4)

const a = observable({
width: 10,
Expand All @@ -1967,6 +1967,7 @@ test("Issue 1121 - It should be possible to redefine a computed property", t =>

t.equal(observeCalls, 1)
t.equal(reactionCalls, 1)
t.equal(a.surface, 22)

t.end()
})

0 comments on commit ac3d71f

Please sign in to comment.