Last active
November 22, 2018 17:14
-
-
Save MBehtemam/a194ed6ad7bef8aa1afb2818918a6af8 to your computer and use it in GitHub Desktop.
First 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
const supertest = require("supertest"); | |
const assert = require('assert'); | |
const app = require("../index"); | |
describe("GET /", function() { | |
it("it should has status code 200", function(done) { | |
supertest(app) | |
.get("/") | |
.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