13 lines
323 B
TypeScript
13 lines
323 B
TypeScript
import * as supertest from "supertest";
|
|
import { default as app } from "../src/server";
|
|
|
|
const request = supertest("localhost:3000");
|
|
|
|
describe("GET /random-url", () => {
|
|
it("should return 404", () => {
|
|
return request.get("/random-url").then((response) => {
|
|
expect(response.status).toBe(404);
|
|
});
|
|
});
|
|
});
|