mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-09 00:37:27 +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 /random-url", () => {
|
||||
const request = supertest(app);
|
||||
|
||||
it("should return 404", (done) => {
|
||||
request.get("/reset")
|
||||
request(app).get("/reset")
|
||||
.expect(404, done);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user