Skip to content

Commit 91ba14d

Browse files
author
Rhys Anthony McCaig
committed
Fixed alg non + secret set unit test
1 parent b1ff632 commit 91ba14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/async_sign.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('signing a token asynchronously', function() {
3333
});
3434

3535
it('should work with none algorithm where secret is set', function(done) {
36-
jwt.sign({ foo: 'bar' }, undefined, { algorithm: 'none' }, function(err, token) {
36+
jwt.sign({ foo: 'bar' }, 'secret', { algorithm: 'none' }, function(err, token) {
3737
expect(token).to.be.a('string');
3838
expect(token.split('.')).to.have.length(3);
3939
done();

0 commit comments

Comments
 (0)