1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 15:37:24 +00:00
Files
TypeScript-Node-Starter/test/user.test.ts
2017-10-29 14:01:58 +01:00

19 lines
383 B
TypeScript

import * as supertest from "supertest";
import * as app from "../src/server";
const request = supertest(app);
describe("GET /login", () => {
it("should return 200 OK", (done) => {
request.get("/login")
.expect(200, done);
});
});
describe("GET /signup", () => {
it("should return 200 OK", (done) => {
request.get("/signup")
.expect(200, done);
});
});