Skip to content

Commit

Permalink
[Tests] add tests for getDOMNode
Browse files Browse the repository at this point in the history
Fixes #1841.
  • Loading branch information
ljharb committed Oct 5, 2018
1 parent 8c8840e commit 9d2ebb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/enzyme-test-suite/test/ReactWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7287,6 +7287,12 @@ describeWithDOM('mount', () => {
);
});
});

it('lets you read the value of an input', () => {
const wrapper = mount(<div><input value="0" /></div>);
const inputNode = wrapper.find('input').getDOMNode();
expect(inputNode.value).to.equal('0');
});
});

describe('#single()', () => {
Expand Down

0 comments on commit 9d2ebb7

Please sign in to comment.