Skip to content

Instantly share code, notes, and snippets.

@nessup
Created March 6, 2019 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nessup/723da0a3ca2b83762561c11e7d9f51b1 to your computer and use it in GitHub Desktop.
Save nessup/723da0a3ca2b83762561c11e7d9f51b1 to your computer and use it in GitHub Desktop.
Fixed expectation in TDD tutorial
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