change tests to not always pass
This commit is contained in:
Родитель
90f07c09b5
Коммит
ff6d059921
|
@ -98,4 +98,4 @@
|
|||
"tslint": "^5.8.0",
|
||||
"typescript": "^2.4.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
import {} from "jest";
|
||||
import * as supertest from "supertest";
|
||||
import * as app from "../src/server";
|
||||
|
||||
const request = supertest("http://localhost:3000");
|
||||
|
||||
describe("GET /api", () => {
|
||||
const request = supertest(app);
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
import * as supertest from "supertest";
|
||||
import * as app from "../src/server";
|
||||
const request = supertest("http://localhost:3000");
|
||||
|
||||
describe("GET /contact", () => {
|
||||
const request = supertest(app);
|
||||
|
||||
it("should return 200 OK", (done) => {
|
||||
request.get("/contact")
|
||||
.expect(200, done);
|
||||
it("should return 200 OK", () => {
|
||||
return request.get("/contact")
|
||||
.expect(200);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
import * as supertest from "supertest";
|
||||
import * as app from "../src/server";
|
||||
const request = supertest("http://localhost:3000");
|
||||
|
||||
describe("GET /", () => {
|
||||
const request = supertest(app);
|
||||
|
||||
it("should return 200 OK", (done) => {
|
||||
request.get("/")
|
||||
.expect(200, done);
|
||||
it("should return 200 OK", () => {
|
||||
return request.get("/")
|
||||
.expect(200);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
import * as supertest from "supertest";
|
||||
import * as app from "../src/server";
|
||||
|
||||
const request = supertest(app);
|
||||
const request = supertest("http://localhost:3000");
|
||||
|
||||
describe("GET /login", () => {
|
||||
it("should return 200 OK", () => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче