Skip to content

Commit

Permalink
correct test expect
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Mar 10, 2020
1 parent 1ad7b9b commit 84dff05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/test/browser/forwardRef.test.js
Expand Up @@ -393,7 +393,7 @@ describe('forwardRef', () => {
const Transition = ({ children }) => {
const state = useState(0);
forceTransition = state[1];
expect(children.ref).to.exist;
expect(children.ref).to.not.be.undefined;
if (state[0] === 0) expect(children.props.ref).to.be.undefined;
return children;
};
Expand Down

0 comments on commit 84dff05

Please sign in to comment.