Skip to content

Instantly share code, notes, and snippets.

@MBehtemam
Last active November 22, 2018 17:14
Show Gist options
  • Save MBehtemam/a194ed6ad7bef8aa1afb2818918a6af8 to your computer and use it in GitHub Desktop.
Save MBehtemam/a194ed6ad7bef8aa1afb2818918a6af8 to your computer and use it in GitHub Desktop.
First Test
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