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

change tests to not always pass

This commit is contained in:
Daniel Temme
2017-08-09 13:27:36 +02:00
committed by Bowden
parent 90f07c09b5
commit ff6d059921
6 changed files with 17 additions and 23 deletions

View File

@@ -1,11 +1,9 @@
import * as supertest from "supertest";
import * as app from "../src/server";
const request = supertest("http://localhost:3000");
describe("GET /random-url", () => {
const request = supertest(app);
it("should return 404", (done) => {
request.get("/reset")
.expect(404, done);
it("should return 404", () => {
return request.get("/reset")
.expect(404);
});
});