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

Update packages, add tests, add type casts (#229)

- upgrade to latest packages
- cast `req.user` as `UserDocument`
- update logger to use latest Winston syntax
- disable `no-inferrable-types`, Mongoose use unified topology

Thx to @CarlosSolrac
This commit is contained in:
CarlosK
2019-09-29 05:31:07 -05:00
committed by Piotr Błażejewicz (Peter Blazejewicz)
parent 53ccb59f93
commit 1098943419
9 changed files with 1532 additions and 1158 deletions

View File

@@ -9,6 +9,14 @@ describe("GET /login", () => {
});
});
describe("GET /forgot", () => {
it("should return 200 OK", () => {
return request(app).get("/forgot")
.expect(200);
});
});
describe("GET /signup", () => {
it("should return 200 OK", () => {
return request(app).get("/signup")
@@ -16,6 +24,12 @@ describe("GET /signup", () => {
});
});
describe("GET /reset", () => {
it("should return 302 Found for redirection", () => {
return request(app).get("/reset/1")
.expect(302);
});
});
describe("POST /login", () => {
it("should return some defined error message with valid parameters", (done) => {