1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-09 06:37:32 +00:00
Files
TypeScript-Node-Starter/test/api.test.ts
2017-12-14 11:33:28 -08:00

15 lines
286 B
TypeScript

import {} from "jest";
import * as supertest from "supertest";
const request = supertest("http://localhost:3000");
describe("GET /api", () => {
const request = supertest(app);
it("should return 200 OK", () => {
return request
.get("/api")
.expect(200);
});
});