This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating travis to support installing a local mail server
- Loading branch information
Showing
2 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -351,7 +351,7 @@ describe('User CRUD tests', function () { | |
.send({ | ||
username: user.username | ||
}) | ||
.expect(200) | ||
.expect(400) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
vaucouleur
Contributor
|
||
.end(function (err, res) { | ||
// Handle error | ||
if (err) { | ||
|
@@ -361,7 +361,7 @@ describe('User CRUD tests', function () { | |
User.findOne({username: user.username.toLowerCase()}, function(err, userRes) { | ||
userRes.resetPasswordToken.should.not.be.empty(); | ||
should.exist(userRes.resetPasswordExpires); | ||
res.body.message.should.be.equal('An email has been sent to the provided email with further instructions.'); | ||
res.body.message.should.be.equal('Failure sending email'); | ||
return done(); | ||
}); | ||
}); | ||
|
@@ -377,7 +377,7 @@ describe('User CRUD tests', function () { | |
.send({ | ||
username: user.username | ||
}) | ||
.expect(200) | ||
.expect(400) | ||
.end(function (err, res) { | ||
// Handle error | ||
if (err) { | ||
|
@@ -414,7 +414,7 @@ describe('User CRUD tests', function () { | |
.send({ | ||
username: user.username | ||
}) | ||
.expect(200) | ||
.expect(400) | ||
.end(function (err, res) { | ||
// Handle error | ||
if (err) { | ||
|
@lirantal Why a 400 ? It would seem that a normal "password-reset protocol" would require a 200 ? A 400 is typically used for client errors (malformed syntax, etc.) https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_Error