Skip to content

Commit

Permalink
[Docs] shallow: fix variable name in prop example
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-anosov authored and ljharb committed Mar 25, 2021
1 parent 57baba5 commit f143877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/prop.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ expect(wrapper.prop('includedProp')).to.equal('Success!');

const validInput = 1;
wrapper.find('ValidateNumberInputComponent').prop('onChangeHandler')(validInput);
expect(wrapper.state('number')).to.equal(number);
expect(wrapper.state('number')).to.equal(validInput);

const invalidInput = 'invalid input';
wrapper.find('ValidateNumberInputComponent').prop('onChangeHandler')(invalidInput);
Expand Down

0 comments on commit f143877

Please sign in to comment.