Skip to content

Commit

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

expectDev(console.error.calls.argsFor(0)[0]).toContain(
'If you intentionally tried to pass a boolean, pass it as a string ' +
'instead: `true`=\"`whatever`\". If you mean to conditionally pass an ' +
'instead: `true`="`whatever`". If you mean to conditionally pass an ' +
'attribute, use a ternary expression: `true`={condition ? value : null}.',
);
});
Expand All @@ -2058,7 +2058,7 @@ describe('ReactDOMComponent', () => {

expectDev(console.error.calls.argsFor(0)[0]).toContain(
'If you intentionally tried to pass a boolean, pass it as a string ' +
'instead: `true`=\"`whatever`\". If you mean to conditionally pass an ' +
'instead: `true`="`whatever`". If you mean to conditionally pass an ' +
'attribute, use a ternary expression: `true`={condition ? value : null}.',
);
});
Expand Down Expand Up @@ -2235,7 +2235,7 @@ describe('ReactDOMComponent', () => {

expectDev(console.error.calls.argsFor(0)[0]).toContain(
'If you intentionally tried to pass a boolean, pass it as a string ' +
'instead: `true`=\"`whatever`\". If you mean to conditionally pass an ' +
'instead: `true`="`whatever`". If you mean to conditionally pass an ' +
'attribute, use a ternary expression: `true`={condition ? value : null}.',
);
});
Expand Down Expand Up @@ -2290,7 +2290,7 @@ describe('ReactDOMComponent', () => {
expectDev(console.error.calls.count()).toBe(1);
expectDev(console.error.calls.argsFor(0)[0]).toContain(
'If you intentionally tried to pass a boolean, pass it as a string ' +
'instead: `false`=\"`whatever`\". If you mean to conditionally pass an ' +
'instead: `false`="`whatever`". If you mean to conditionally pass an ' +
'attribute, use a ternary expression: `false`={condition ? value : null}.',
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ if (__DEV__) {
warning(
DOMProperty.shouldAttributeAcceptBooleanValue(name),
'If you intentionally tried to pass a boolean, pass it as a string ' +
'instead: `%s`=\"`%s`\". If you mean to conditionally pass an ' +
'instead: `%s`="`%s`". If you mean to conditionally pass an ' +
'attribute, use a ternary expression: `%s`={condition ? value : null}.%s',
value,
name,
Expand Down

0 comments on commit 3d4724e

Please sign in to comment.