Created
March 6, 2019 19:33
-
-
Save nessup/723da0a3ca2b83762561c11e7d9f51b1 to your computer and use it in GitHub Desktop.
Fixed expectation in TDD tutorial
This file contains hidden or 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
waitForDomChange({ container }) | |
.then(() => { | |
// Assert | |
expect(props.createComment).toHaveBeenCalledTimes(1) | |
expect(props.createComment).toHaveBeenCalledWith(newComment) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment