mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-08 20:27:37 +00:00
initial commit
This commit is contained in:
12
test/api.test.ts
Normal file
12
test/api.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user