Skip to content

Commit

Permalink
fix: will not update when controller state are not change --> 2-->1
Browse files Browse the repository at this point in the history
  • Loading branch information
Foveluy committed May 4, 2018
1 parent 0ba0c7a commit 15ab7d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__test__/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ describe('test for rectx', () => {
})


it('will not update when controller state are not change', async () => {
it('will update when controller state are not change', async () => {
let renderTimes = 0
let willUpdateRenderTimes = 0
class Clr extends Controller {
Expand Down Expand Up @@ -280,7 +280,7 @@ describe('test for rectx', () => {
</Provider>
)
await noop()
expect(renderTimes).equal(1)
expect(renderTimes).equal(2)
})

it('nesting with ListenWillNotUpdate && ListenWillUpdate,', async () => {
Expand Down

0 comments on commit 15ab7d2

Please sign in to comment.