fix passphrase test
This commit is contained in:
parent
2f7eaa4c97
commit
5a3134212c
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ describe('Passphrase model', function() {
|
||||||
should.exist(p);
|
should.exist(p);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should generate key from password', function () {
|
it('should generate key from password', function (done) {
|
||||||
var p = new Passphrase({
|
var p = new Passphrase({
|
||||||
salt: 'mjuBtGybi/4=',
|
salt: 'mjuBtGybi/4=',
|
||||||
iterations: 10,
|
iterations: 10,
|
||||||
|
|
@ -33,6 +33,7 @@ describe('Passphrase model', function() {
|
||||||
|
|
||||||
p.getBase64Async(pass, function (ret) {
|
p.getBase64Async(pass, function (ret) {
|
||||||
ret.toString().should.equal('IoP+EbmhibgvHAkgCAaSDL3Y73UvU96pEPkKtSb0Qazb1RKFVWR6fjkKGp/qBCImljzND3hRAws9bigszrqhfg==');
|
ret.toString().should.equal('IoP+EbmhibgvHAkgCAaSDL3Y73UvU96pEPkKtSb0Qazb1RKFVWR6fjkKGp/qBCImljzND3hRAws9bigszrqhfg==');
|
||||||
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue