Permalink
Browse files

add another test

  • Loading branch information...
1 parent bba5761 commit 52c6e40ff893d412209623d1b50df04cf509876d @tj committed Jul 23, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 test/pwd.js
View
@@ -52,8 +52,17 @@ describe('.hash(pass, salt, fn)', function(){
describe('.iterations(n)', function(){
it('should set iterations', function(){
- pass.iterations(1000);
- pass.iterations().should.equal(1000);
+ pass.iterations(10);
+ pass.iterations().should.equal(10);
+ })
+
+ it('should still work', function(done){
+ pass.hash('foobar', function(err, salt, hash){
+ pass.hash('foobar', salt, function(err, cpm){
+ cpm.should.equal(hash);
+ done();
+ })
+ })
})
})

0 comments on commit 52c6e40

Please sign in to comment.