1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 16:17:37 +00:00
Files
TypeScript-Node-Starter/test/home.test.ts
Daniel Temme 75d72df881 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-12-14 11:34:15 -08:00

11 lines
229 B
TypeScript

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