Skip to content

Commit

Permalink
Fixed alg non + secret set unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Anthony McCaig committed Aug 12, 2017
1 parent b1ff632 commit 91ba14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/async_sign.tests.js
Expand Up @@ -33,7 +33,7 @@ describe('signing a token asynchronously', function() {
});

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

0 comments on commit 91ba14d

Please sign in to comment.