mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-08 20:27:37 +00:00
13 lines
248 B
TypeScript
13 lines
248 B
TypeScript
import * as supertest from "supertest";
|
|
import * as app from "../src/server";
|
|
|
|
describe("GET /api", () => {
|
|
const request = supertest(app);
|
|
|
|
it("should return 200 OK", () => {
|
|
return request
|
|
.get("/api")
|
|
.expect(200);
|
|
});
|
|
});
|