From 91ba14db397c2674b51657c0916e26f7d541e508 Mon Sep 17 00:00:00 2001 From: Rhys Anthony McCaig Date: Fri, 11 Aug 2017 17:32:06 -0700 Subject: [PATCH] Fixed alg non + secret set unit test --- test/async_sign.tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/async_sign.tests.js b/test/async_sign.tests.js index 1c772bf..24700be 100644 --- a/test/async_sign.tests.js +++ b/test/async_sign.tests.js @@ -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();