init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import * as supertest from "supertest";
|
||||
import { default as app } from "../src/server";
|
||||
const request = supertest("localhost:3000");
|
||||
|
||||
describe("GET /login", () => {
|
||||
it("should return 200 OK", () => {
|
||||
return request.get("/login").then((response) => {
|
||||
expect(response.status).toBe(200);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("GET /signup", () => {
|
||||
it("should return 200 OK", () => {
|
||||
return request.get("/signup").then((response) => {
|
||||
expect(response.status).toBe(200);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user