Last active
November 22, 2018 17:15
-
-
Save MBehtemam/8376fb0c78f7062406bd2e57db195693 to your computer and use it in GitHub Desktop.
post test without request body
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
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