Skip to content

Commit

Permalink
React 15 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Feb 18, 2019
1 parent 4e971b5 commit 02d1725
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/AppContainer.dev.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,9 @@ describe(`AppContainer (dev)`, () => {
wrapper.setProps({ children: <App /> })
}

expect(spy).toHaveBeenCalledTimes(1 + 2)
expect(spy).toHaveBeenCalledTimes(
configuration.pureRender && !React.lazy ? 4 : 3,
)
expect(wrapper.contains(<div>ho</div>)).toBe(true)
})

Expand Down Expand Up @@ -1493,7 +1495,9 @@ describe(`AppContainer (dev)`, () => {
}

expect(firstSpy).toHaveBeenCalledTimes(1)
expect(secondSpy).toHaveBeenCalledTimes(2)
expect(secondSpy).toHaveBeenCalledTimes(
configuration.pureRender && !React.lazy ? 3 : 2,
)
expect(wrapper.contains(<div>second</div>)).toBe(true)
})

Expand Down Expand Up @@ -2099,7 +2103,9 @@ describe(`AppContainer (dev)`, () => {
}

expect(firstSpy).toHaveBeenCalledTimes(1)
expect(secondSpy).toHaveBeenCalledTimes(2)
expect(secondSpy).toHaveBeenCalledTimes(
configuration.pureRender && !React.lazy ? 3 : 2,
)
expect(wrapper.contains(<div>second</div>)).toBe(true)
})

Expand Down

0 comments on commit 02d1725

Please sign in to comment.