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,18 +1,16 @@
|
||||
import * as supertest from "supertest";
|
||||
import * as app from "../src/server";
|
||||
|
||||
const request = supertest(app);
|
||||
import * as request from "supertest";
|
||||
import * as app from "../src/app";
|
||||
|
||||
describe("GET /login", () => {
|
||||
it("should return 200 OK", () => {
|
||||
return request.get("/login")
|
||||
return request(app).get("/login")
|
||||
.expect(200);
|
||||
});
|
||||
});
|
||||
|
||||
describe("GET /signup", () => {
|
||||
it("should return 200 OK", () => {
|
||||
return request.get("/signup")
|
||||
return request(app).get("/signup")
|
||||
.expect(200);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user