1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-09 08:08:16 +00:00
Files
TypeScript-Node-Starter/test/api.test.ts
Daniel Temme 4eb0962a7b separate server binding to port from other app config
this seems a bit crude but allows running the tests and having them take
care of setting up the port to use
2017-08-19 16:12:45 +02:00

14 lines
266 B
TypeScript

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