Make regression test better

This commit is contained in:
Dan Abramov
2018-08-31 15:57:02 +01:00
parent f943423231
commit 0f050ad7cc
@@ -89,11 +89,13 @@ describe('DOMPropertyOperations', () => {
ReactDOM.render(
<select>
<option value="">empty</option>
<option>filled</option>
</select>,
container,
);
// Regression test for https://github.com/facebook/react/issues/6219
expect(container.firstChild.firstChild.value).toBe('');
expect(container.firstChild.lastChild.value).toBe('filled');
});
it('should remove for falsey boolean properties', () => {