mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
test: get rid of 'should be 1' comment
This should not be 1, since boolean properties always get set.
This commit is contained in:
@@ -675,7 +675,7 @@ describe('ReactDOMComponent', function() {
|
||||
expect(nodeValueSetter.mock.calls.length).toBe(1);
|
||||
|
||||
ReactDOM.render(<div checked={false} />, container);
|
||||
expect(nodeValueSetter.mock.calls.length).toBe(2); // should be 1
|
||||
expect(nodeValueSetter.mock.calls.length).toBe(2);
|
||||
|
||||
ReactDOM.render(<div checked={true} />, container);
|
||||
expect(nodeValueSetter.mock.calls.length).toBe(3);
|
||||
|
||||
Reference in New Issue
Block a user