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.
fixing jshint issues by requiring single quotes
- Loading branch information
Showing
4 changed files
with
19 additions
and
19 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
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 |
---|---|---|
|
@@ -218,7 +218,7 @@ describe('User Model Unit Tests:', function () { | |
}); | ||
}); | ||
|
||
describe("User Password Validation Tests", function() { | ||
describe('User Password Validation Tests', function() { | ||
it('should validate when the password strength passes - "P@$$w0rd!!"', function () { | ||
var _user1 = new User(user1); | ||
_user1.password = 'P@$$w0rd!!'; | ||
|
@@ -251,7 +251,7 @@ describe('User Model Unit Tests:', function () { | |
_user1.password = 'P@$$w0rd!'; | ||
|
||
_user1.validate(function (err) { | ||
err.errors.password.message.should.equal("The password must be at least 10 characters long."); | ||
err.errors.password.message.should.equal('The password must be at least 10 characters long.'); | ||
done(); | ||
}); | ||
}); | ||
|
@@ -261,7 +261,7 @@ describe('User Model Unit Tests:', function () { | |
_user1.password = ')!/uLT="lh&:`6X!]|15o!$!TJf,.13l?vG].-j],lFPe/QhwN#{Z<[*1nX@n1^?WW-%_.*D)m$toB+N7z}kcN#B_d(f41h%w@0F!]igtSQ1gl~6sEV&r~}~1ub>If1c+'; | ||
|
||
_user1.validate(function (err) { | ||
err.errors.password.message.should.equal("The password must be fewer than 128 characters."); | ||
err.errors.password.message.should.equal('The password must be fewer than 128 characters.'); | ||
done(); | ||
}); | ||
}); | ||
|
@@ -271,7 +271,7 @@ describe('User Model Unit Tests:', function () { | |
_user1.password = 'P@$$w0rd!!!'; | ||
|
||
_user1.validate(function (err) { | ||
err.errors.password.message.should.equal("The password may not contain sequences of three or more repeated characters."); | ||
err.errors.password.message.should.equal('The password may not contain sequences of three or more repeated characters.'); | ||
done(); | ||
}); | ||
}); | ||
|
@@ -281,7 +281,7 @@ describe('User Model Unit Tests:', function () { | |
_user1.password = 'p@$$w0rd!!'; | ||
|
||
_user1.validate(function (err) { | ||
err.errors.password.message.should.equal("The password must contain at least one uppercase letter."); | ||
err.errors.password.message.should.equal('The password must contain at least one uppercase letter.'); | ||
done(); | ||
}); | ||
}); | ||
|
@@ -291,7 +291,7 @@ describe('User Model Unit Tests:', function () { | |
_user1.password = 'P@$$word!!'; | ||
|
||
_user1.validate(function (err) { | ||
err.errors.password.message.should.equal("The password must contain at least one number."); | ||
err.errors.password.message.should.equal('The password must contain at least one number.'); | ||
done(); | ||
}); | ||
}); | ||
|
@@ -301,13 +301,13 @@ describe('User Model Unit Tests:', function () { | |
_user1.password = 'Passw0rdss'; | ||
|
||
_user1.validate(function (err) { | ||
err.errors.password.message.should.equal("The password must contain at least one special character."); | ||
err.errors.password.message.should.equal('The password must contain at least one special character.'); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
|
||
describe("User E-mail Validation Tests", function() { | ||
describe('User E-mail Validation Tests', function() { | ||
it('should not allow invalid email address - "123"', function (done) { | ||
var _user1 = new User(user1); | ||
|
||
|
@@ -476,7 +476,7 @@ describe('User Model Unit Tests:', function () { | |
it('should allow single quote characters in email address - "abc\'[email protected]"', function (done) { | ||
var _user1 = new User(user1); | ||
|
||
_user1.email = "abc\'[email protected]"; | ||
_user1.email = 'abc\'[email protected]'; | ||
_user1.save(function (err) { | ||
if (!err) { | ||
_user1.remove(function (err_remove) { | ||
|