Skip to content

Commit

Permalink
Modified test. #3
Browse files Browse the repository at this point in the history
  • Loading branch information
NicBonetto committed Oct 20, 2017
1 parent 8de9a20 commit 4ce5b49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react-dom/src/__tests__/ReactDOMAttribute-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ describe('ReactDOM unknown attribute', () => {
expectDev(
normalizeCodeLocInfo(console.error.calls.argsFor(0)[0]),
).toMatch(
'Warning: Received `true` for non-boolean attribute `unknown`. ' +
'If this is expected, cast the value to a string.\n' +
'Warning: If you intentionally tried to pass a boolean, pass it as a string ' +
'instead: `true`=\"`unknown`\". If you mean to conditionally pass an ' +
'attribute, use a ternary expression: `true`={condition ? value : null}.\n' +
' in div (at **)',
);
expectDev(console.error.calls.count()).toBe(1);
Expand Down

0 comments on commit 4ce5b49

Please sign in to comment.