Skip to content

Commit

Permalink
check result
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Feb 11, 2021
1 parent 3cc8c9f commit 9dca3dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/link-warnings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ describe('<TestComponent/>', () => {
spy = jest.spyOn(console, 'error').mockImplementation(() => {})
})

// Commenting out "test a" makes the problem go away.
// This fails with NextJS 10.x, but works with 9.5.6.
it('test a', () => {})

it('test c', () => {
it('test link', () => {
let result
act(() => {
render(
result = render(
<div>
<p>Hello</p>
<Link href="nowhere">hello</Link>
</div>
)
})

expect(result).toBeDefined()
expect(spy).not.toHaveBeenCalled()
})

Expand Down

0 comments on commit 9dca3dc

Please sign in to comment.