mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2026-02-04 05:43:02 +00:00
Fix outdated dependencies and NPM audit warnings (#334)
- deps update - package lock update - minor code changes to align with updated libraries /cc @daxeh Fixes #333
This commit is contained in:
committed by
GitHub
parent
d4bf8576bb
commit
a545815bb3
@@ -18,26 +18,27 @@ describe("GET /forgot", () => {
|
||||
});
|
||||
|
||||
describe("GET /signup", () => {
|
||||
it("should return 200 OK", () => {
|
||||
return request(app).get("/signup")
|
||||
.expect(200);
|
||||
it("should return 200 OK", (done) => {
|
||||
request(app).get("/signup")
|
||||
.expect(200)
|
||||
.end(() => done());
|
||||
});
|
||||
});
|
||||
|
||||
describe("GET /reset", () => {
|
||||
it("should return 302 Found for redirection", () => {
|
||||
return request(app).get("/reset/1")
|
||||
.expect(302);
|
||||
it("should return 302 Found for redirection", (done) => {
|
||||
request(app).get("/reset/1")
|
||||
.expect(302).end(() => done());
|
||||
});
|
||||
});
|
||||
|
||||
describe("POST /login", () => {
|
||||
it("should return some defined error message with valid parameters", (done) => {
|
||||
return request(app).post("/login")
|
||||
request(app).post("/login")
|
||||
.field("email", "john@me.com")
|
||||
.field("password", "Hunter2")
|
||||
.expect(302)
|
||||
.end(function(err, res) {
|
||||
.end((err, res) => {
|
||||
expect(res.error).not.to.be.undefined;
|
||||
done();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user