mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Fix error utils test failure caused by updating error codes (#10291)
This commit is contained in:
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})`, () => {
|
||||
|
||||
Reference in new issue
Block a user