Skip to content

Instantly share code, notes, and snippets.

@MBehtemam
Last active November 22, 2018 17:15
Show Gist options
  • Save MBehtemam/8376fb0c78f7062406bd2e57db195693 to your computer and use it in GitHub Desktop.
Save MBehtemam/8376fb0c78f7062406bd2e57db195693 to your computer and use it in GitHub Desktop.
post test without request body
it("it shoud return status code 400 if we dosent send anything", function(done){
supertest(app)
.post("/")
.send({})
.expect(400)
.end(function(err, res){
if (err) done(err);
done();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment