Last active
February 12, 2017 19:35
-
-
Save NiGhTTraX/27a451d6a99ba05570248839c7fdd4b7 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 using the delete button', function() { | |
const Delete = createSpy(); | |
const onDeleteSpy = spy(); | |
render(<Todo Delete={Delete} name="buy milk" onDelete={onDeleteSpy} />); | |
Delete.lastProps.onSubmit(); | |
expect(onDeleteSpy).to.have.been.called; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment