diff --git a/packages/react-dom/src/__tests__/ReactDOMInput-test.js b/packages/react-dom/src/__tests__/ReactDOMInput-test.js index 4674f9e40e393..9e9b99f0bcd4a 100644 --- a/packages/react-dom/src/__tests__/ReactDOMInput-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMInput-test.js @@ -1579,25 +1579,13 @@ describe('ReactDOMInput', () => { container, ); - if (disableInputAttributeSyncing) { - expect(log).toEqual([ - 'set attribute type', - 'set attribute min', - 'set attribute max', - 'set attribute step', - 'set property value', - ]); - } else { - expect(log).toEqual([ - 'set attribute type', - 'set attribute min', - 'set attribute max', - 'set attribute step', - 'set property value', - 'set attribute value', - 'set attribute checked', - ]); - } + expect(log).toEqual([ + 'set attribute type', + 'set attribute min', + 'set attribute max', + 'set attribute step', + 'set property value', + ]); }); it('sets value properly with type coming later in props', () => { @@ -1662,8 +1650,6 @@ describe('ReactDOMInput', () => { expect(log).toEqual([ 'node.setAttribute("type", "date")', 'node.value = "1980-01-01"', - 'node.setAttribute("value", "1980-01-01")', - 'node.setAttribute("checked", "")', ]); } });