1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-09 08:08:16 +00:00

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
This commit is contained in:
Daniel Temme
2017-08-19 16:12:45 +02:00
committed by Bowden
parent ff6d059921
commit 75d72df881
7 changed files with 11 additions and 143 deletions

View File

@@ -1,5 +1,6 @@
import * as supertest from "supertest";
const request = supertest("http://localhost:3000");
const app = require("../src/app");
const request = supertest(app);
describe("GET /", () => {
it("should return 200 OK", () => {