Answers for "mocha supertest"

0

mocha supertest

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();
      });
  });
});
Posted by: Guest on January-26-2021

Code answers related to "mocha supertest"

Code answers related to "Javascript"

Browse Popular Code Answers by Language