From 1d17beb2ed262980a6babd15a2002be88e43c571 Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Sat, 27 Jan 2024 17:55:54 -0500 Subject: [PATCH] Add ReactDOMClient to ServerIntegrationSelect --- .../__tests__/ReactDOMServerIntegrationSelect-test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react-dom/src/__tests__/ReactDOMServerIntegrationSelect-test.js b/packages/react-dom/src/__tests__/ReactDOMServerIntegrationSelect-test.js index e567ac9eac3ad..9d346f99e4187 100644 --- a/packages/react-dom/src/__tests__/ReactDOMServerIntegrationSelect-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMServerIntegrationSelect-test.js @@ -13,7 +13,7 @@ const ReactDOMServerIntegrationUtils = require('./utils/ReactDOMServerIntegrationTestUtils'); let React; -let ReactDOM; +let ReactDOMClient; let ReactDOMServer; let ReactTestUtils; @@ -21,13 +21,13 @@ function initModules() { // Reset warning cache. jest.resetModules(); React = require('react'); - ReactDOM = require('react-dom'); + ReactDOMClient = require('react-dom/client'); ReactDOMServer = require('react-dom/server'); ReactTestUtils = require('react-dom/test-utils'); // Make them available to the helpers. return { - ReactDOM, + ReactDOMClient, ReactDOMServer, ReactTestUtils, }; @@ -253,7 +253,7 @@ describe('ReactDOMServerIntegrationSelect', () => { , - 1, + 4, ); expect(e.firstChild.selected).toBe(false); expect(e.lastChild.selected).toBe(true); @@ -268,7 +268,7 @@ describe('ReactDOMServerIntegrationSelect', () => { , - 1, + 4, ); expect(e.firstChild.selected).toBe(true); expect(e.lastChild.selected).toBe(false);