Merge pull request #8921 from facebook/revert-8907-fiberproderrorcode

Revert "Loosen assertion so it matches any production error"
This commit is contained in:
Andrew Clark authored and GitHub committed 2017-02-02 15:24:04 -08:00
commit 269555e35c
1 file changed
+6 -1
@@ -185,7 +185,12 @@ describe('ReactDOMProduction', () => {
var container = document.createElement('div');
ReactDOM.render(<Component />, container);
}).toThrowError('Minified React error #');
}).toThrowError(
'Minified React error #109; visit ' +
'http://facebook.github.io/react/docs/error-decoder.html?invariant=109&args[]=Component' +
' for the full message or use the non-minified dev environment' +
' for full errors and additional helpful warnings.'
);
});
if (ReactDOMFeatureFlags.useFiber) {