Last active
November 22, 2018 17:17
-
-
Save MBehtemam/ca9828e629697d74dd55cb5470d230e1 to your computer and use it in GitHub Desktop.
post test
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
describe("POST /", function(){ | |
it("it shoud return status code 200 is name exists", function(done) { | |
supertest(app) | |
.post("/") | |
.send({ name: "Hope" }) | |
.expect(200) | |
.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