Skip to content

Commit a734aec

Browse files
committed
Response to code review comment #9264 (comment) . Thanks, @spicyj!
1 parent 14863c9 commit a734aec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderers/dom/shared/__tests__/ReactDOMServerIntegration-test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,12 +1043,14 @@ describe('ReactDOMServerIntegration', () => {
10431043
// onChange or readOnly is a mistake.
10441044
const e = await render(<input value="foo" />, 1);
10451045
expect(e.value).toBe('foo');
1046+
expect(e.getAttribute('value')).toBe('foo');
10461047
},
10471048
);
10481049

10491050
itRenders('an input with a defaultValue', async render => {
10501051
const e = await render(<input defaultValue="foo" />);
10511052
expect(e.value).toBe('foo');
1053+
expect(e.getAttribute('value')).toBe('foo');
10521054
expect(e.getAttribute('defaultValue')).toBe(null);
10531055
});
10541056

@@ -1058,6 +1060,7 @@ describe('ReactDOMServerIntegration', () => {
10581060
1,
10591061
);
10601062
expect(e.value).toBe('foo');
1063+
expect(e.getAttribute('value')).toBe('foo');
10611064
expect(e.getAttribute('defaultValue')).toBe(null);
10621065
});
10631066

@@ -1069,6 +1072,7 @@ describe('ReactDOMServerIntegration', () => {
10691072
1,
10701073
);
10711074
expect(e.value).toBe('foo');
1075+
expect(e.getAttribute('value')).toBe('foo');
10721076
expect(e.getAttribute('defaultValue')).toBe(null);
10731077
},
10741078
);

0 commit comments

Comments
 (0)