-
-
Save marr/8338211251f6a0ceece7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const input = TestUtils.renderIntoDocument(<input onChange={sinon.spy()} />); | |
Promise.resolve(true).then(result => { | |
TestUtils.Simulate.change(React.findDOMNode(input)); | |
return result; | |
}).then(function(result) { | |
expect(result).to.be.true; | |
expect(input.props.onChange).has.been.calledOnce; | |
}).then(done, done); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment