Last active
February 5, 2017 15:44
-
-
Save NiGhTTraX/f882047486d3ff41c82740144e61dc20 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
it('should delete the todo when clicking on the delete button', function() { | |
const deleteTodo = sinon.spy(); | |
render(<Todo name=”buy milk” onDelete={deleteTodo} />); | |
Simulate.click($(‘.delete’)[0]); | |
expect(deleteTodo).to.have.been.called; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment