Skip to content

Commit

Permalink
update assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Aug 13, 2019
1 parent 16ef540 commit 962cdf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dom/src/__tests__/ReactDOMComponent-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ describe('ReactDOMComponent', () => {
if (typeof value !== 'undefined') {
re += quoteRegexp(value) + '[\\\'"]';
}
expect(new RegExp(re).test(actual)).toBe(true);
expect(actual).toMatch(new RegExp(re));
}

function genMarkup(props) {
Expand Down

0 comments on commit 962cdf5

Please sign in to comment.