Skip to content

Commit

Permalink
[test] test salt generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Aug 29, 2011
1 parent 26477ed commit 02ad39e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ module.exports = testCase({
test.done();
});
},
testSaltGeneration: function (test) {
var salt = this.login.saltGenerate();
test.equal(salt.length, settings.loginManager.saltLength);
test.done();
},
tearDown: function (callback) {
db.remove(this.id, this.rev, callback);
}
Expand Down

0 comments on commit 02ad39e

Please sign in to comment.