From 919531875f8fa447baa5cf216fc3f5e54fd65778 Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Wed, 30 Oct 2024 12:01:49 +0000 Subject: [PATCH] [LOCAL] using older version of React Dev Tools - Older version has old URL, updated tests - Comments on test don't match what's being tested. Updated. --- .../Libraries/LogBox/__tests__/LogBox-integration-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-native/Libraries/LogBox/__tests__/LogBox-integration-test.js b/packages/react-native/Libraries/LogBox/__tests__/LogBox-integration-test.js index 1e64e5e11efd8d..d0c836c4774d23 100644 --- a/packages/react-native/Libraries/LogBox/__tests__/LogBox-integration-test.js +++ b/packages/react-native/Libraries/LogBox/__tests__/LogBox-integration-test.js @@ -81,7 +81,7 @@ describe('LogBox', () => { expect(mockWarn).not.toBeCalled(); expect(console.error).toBeCalledTimes(1); expect(console.error.mock.calls[0]).toEqual([ - 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.%s', + 'Warning: Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.%s', '\n\nCheck the render method of `DoesNotUseKey`.', '', expect.stringMatching('at DoesNotUseKey'), @@ -95,7 +95,7 @@ describe('LogBox', () => { componentStackType: 'stack', message: { content: - 'Warning: Each child in a list should have a unique "key" prop.\n\nCheck the render method of `DoesNotUseKey`. See https://react.dev/link/warning-keys for more information.', + 'Warning: Each child in a list should have a unique "key" prop.\n\nCheck the render method of `DoesNotUseKey`. See https://reactjs.org/link/warning-keys for more information.', substitutions: [ {length: 45, offset: 62}, {length: 0, offset: 107}, @@ -107,7 +107,7 @@ describe('LogBox', () => { // We also interpolate the string before passing to the underlying console method. expect(mockError.mock.calls[0]).toEqual([ expect.stringMatching( - 'Warning: Each child in a list should have a unique "key" prop.\n\nCheck the render method of `DoesNotUseKey`. See https://react.dev/link/warning-keys for more information.\n at ', + 'Warning: Each child in a list should have a unique "key" prop.\n\nCheck the render method of `DoesNotUseKey`. See https://reactjs.org/link/warning-keys for more information.\n at ', ), ]); }); @@ -135,7 +135,7 @@ describe('LogBox', () => { expect(mockWarn).not.toBeCalled(); expect(console.error).toBeCalledTimes(1); expect(console.error.mock.calls[0]).toEqual([ - 'Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s', + 'Warning: Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s', 'invalid', expect.stringMatching('at FragmentWithProp'), ]);