1
0
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:
Bowden
2017-12-14 15:27:52 -08:00
parent e7e0bb7c7c
commit 1f6f2b06aa
6 changed files with 18 additions and 166 deletions

View File

@@ -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);
});
});