Skip to content

Commit

Permalink
Response to code review comment #9264 (comment) . Thanks, @spicyj!
Browse files Browse the repository at this point in the history
  • Loading branch information
aickin committed Mar 31, 2017
1 parent 14863c9 commit a734aec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1043,12 +1043,14 @@ describe('ReactDOMServerIntegration', () => {
// onChange or readOnly is a mistake.
const e = await render(<input value="foo" />, 1);
expect(e.value).toBe('foo');
expect(e.getAttribute('value')).toBe('foo');
},
);

itRenders('an input with a defaultValue', async render => {
const e = await render(<input defaultValue="foo" />);
expect(e.value).toBe('foo');
expect(e.getAttribute('value')).toBe('foo');
expect(e.getAttribute('defaultValue')).toBe(null);
});

Expand All @@ -1058,6 +1060,7 @@ describe('ReactDOMServerIntegration', () => {
1,
);
expect(e.value).toBe('foo');
expect(e.getAttribute('value')).toBe('foo');
expect(e.getAttribute('defaultValue')).toBe(null);
});

Expand All @@ -1069,6 +1072,7 @@ describe('ReactDOMServerIntegration', () => {
1,
);
expect(e.value).toBe('foo');
expect(e.getAttribute('value')).toBe('foo');
expect(e.getAttribute('defaultValue')).toBe(null);
},
);
Expand Down

0 comments on commit a734aec

Please sign in to comment.