From 8ed9d7ce7bd4b803f2ec5c44e283120163ee8743 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Mon, 11 Mar 2024 17:00:50 -0700 Subject: [PATCH] Rebase fix --- .../src/__tests__/ReactBrowserEventEmitter-test.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/react-dom/src/__tests__/ReactBrowserEventEmitter-test.js b/packages/react-dom/src/__tests__/ReactBrowserEventEmitter-test.js index 5e27986c766a0..9c023f06d9d2a 100644 --- a/packages/react-dom/src/__tests__/ReactBrowserEventEmitter-test.js +++ b/packages/react-dom/src/__tests__/ReactBrowserEventEmitter-test.js @@ -202,21 +202,13 @@ describe('ReactBrowserEventEmitter', () => { expect(idCallOrder[0]).toBe(CHILD); expect(idCallOrder[1]).toBe(PARENT); expect(idCallOrder[2]).toBe(GRANDPARENT); - expect(errorHandler).toHaveBeenCalledTimes(__DEV__ ? 2 : 1); + expect(errorHandler).toHaveBeenCalledTimes(1); expect(errorHandler.mock.calls[0][0]).toEqual( expect.objectContaining({ error: expect.any(Error), message: 'Handler interrupted', }), ); - if (__DEV__) { - expect(errorHandler.mock.calls[1][0]).toEqual( - expect.objectContaining({ - error: expect.any(Error), - message: 'Handler interrupted', - }), - ); - } } finally { window.removeEventListener('error', errorHandler); }