mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-09 00:37:27 +00:00
change tests to not always pass
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import * as supertest from "supertest";
|
||||
import * as app from "../src/server";
|
||||
const request = supertest("http://localhost:3000");
|
||||
|
||||
describe("GET /", () => {
|
||||
const request = supertest(app);
|
||||
|
||||
it("should return 200 OK", (done) => {
|
||||
request.get("/")
|
||||
.expect(200, done);
|
||||
it("should return 200 OK", () => {
|
||||
return request.get("/")
|
||||
.expect(200);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user