Skip to content

Commit b28c4e1

Browse files
committed
Fix other tests with new API without callbacks
1 parent 4cffd7c commit b28c4e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unittests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,19 +316,19 @@ describe('limits test', function() {
316316

317317
it('should throw with too big N', function() {
318318
assert.throws(function() {
319-
scrypt(v.password, v.salt, { N: ((-1)>>>0) + 1, r: v.r, dkLen: v.dkLen });
319+
scrypt(v.password, v.salt, { N: ((-1)>>>0) + 1, r: v.r, dkLen: v.dkLen }, function() {});
320320
}, Error);
321321
});
322322

323323
it('should throw with too small N', function() {
324324
assert.throws(function() {
325-
scrypt(v.password, v.salt, { N: 1, r: v.r, dkLen: v.dkLen });
325+
scrypt(v.password, v.salt, { N: 1, r: v.r, dkLen: v.dkLen }, function() {});
326326
}, Error);
327327
});
328328

329329
it('should throw when N is not power of two', function() {
330330
assert.throws(function() {
331-
scrypt(v.password, v.salt, { N: 123, r: v.r, dkLen: v.dkLen });
331+
scrypt(v.password, v.salt, { N: 123, r: v.r, dkLen: v.dkLen }, function() {});
332332
}, Error);
333333
});
334334

0 commit comments

Comments
 (0)