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