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