Fix error utils test failure caused by updating error codes (#10291)

This commit is contained in:
Brian Vaughn authored and GitHub committed 2017-07-26 12:39:58 -07:00
1 parent 52849c94a7
commit 36a7d5b326
1 file changed
+3 -1
@@ -103,7 +103,9 @@ describe('ReactErrorUtils', () => {
var callback = jest.fn();
ReactErrorUtils.invokeGuardedCallback('foo', callback, null);
expect(ReactErrorUtils.hasCaughtError()).toBe(false);
expect(ReactErrorUtils.clearCaughtError).toThrow('no error');
expect(ReactErrorUtils.clearCaughtError).toThrow(
__DEV__ ? 'no error was captured' : 'Minified React error #198',
);
});
it(`can nest with same debug name (${environment})`, () => {