Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions scripts/fiber/tests-failing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ src/addons/__tests__/ReactFragment-test.js
src/isomorphic/classic/__tests__/ReactContextValidator-test.js
* should pass previous context to lifecycles

src/renderers/dom/__tests__/ReactDOMProduction-test.js
* should throw with an error code in production

src/renderers/dom/shared/__tests__/ReactDOM-test.js
* throws in render() if the mount callback is not a function
* throws in render() if the update callback is not a function
Expand Down
1 change: 1 addition & 0 deletions scripts/fiber/tests-passing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ src/renderers/dom/__tests__/ReactDOMProduction-test.js
* should use prod React
* should handle a simple flow
* should call lifecycle methods
* should throw with an error code in production
* should keep track of namespace across portals in production

src/renderers/dom/fiber/__tests__/ReactDOMFiber-test.js
Expand Down
12 changes: 3 additions & 9 deletions src/renderers/dom/__tests__/ReactDOMProduction-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,11 @@ describe('ReactDOMProduction', () => {

it('should throw with an error code in production', () => {
expect(function() {
class Component extends React.Component {
render() {
return undefined;
}
}

var container = document.createElement('div');
ReactDOM.render(<Component />, container);
ReactDOM.render(<input><div/></input>, container);
}).toThrowError(
'Minified React error #109; visit ' +
'http://facebook.github.io/react/docs/error-decoder.html?invariant=109&args[]=Component' +
'Minified React error #137; visit ' +
'http://facebook.github.io/react/docs/error-decoder.html?invariant=137&args[]=input&args[]=' +
' for the full message or use the non-minified dev environment' +
' for full errors and additional helpful warnings.'
);
Expand Down