Skip to content

Instantly share code, notes, and snippets.

@ignu
Created December 14, 2015 19:19
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 ignu/004a540e3244686006ad to your computer and use it in GitHub Desktop.
Save ignu/004a540e3244686006ad to your computer and use it in GitHub Desktop.
request(app)
.post('/api/users')
.set('Accept', 'application/json')
.end((err, res) => {
console.log(err)
expect(err).to.be(undefined)
expect(res.status).to.be(200)
done()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment