Skip to content

Commit

Permalink
Change the strange undefined assertions into more meaningful ones
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianbote committed Oct 31, 2019
1 parent f99b9ff commit 3410d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compat/test/browser/forwardRef.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,13 @@ describe('forwardRef', () => {
render(<Parent />, scratch);
});

expect(_ref).not.to.be.undefined;
expect(_ref.current).to.equal(scratch.firstChild);

act(() => {
_set(1);
rerender();
});

expect(_ref).not.to.be.undefined;
expect(_ref.current).to.equal(scratch.firstChild);
});
});

0 comments on commit 3410d3e

Please sign in to comment.