From bece8816096f324511c3efcb8db0e64b75d757a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20F=2E=20Romaniello?= Date: Thu, 14 Jul 2016 17:18:05 -0300 Subject: [PATCH] add redundant test --- test/async_sign.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/async_sign.tests.js b/test/async_sign.tests.js index e30ac53..ea6cca5 100644 --- a/test/async_sign.tests.js +++ b/test/async_sign.tests.js @@ -18,6 +18,13 @@ describe('signing a token asynchronously', function() { }); }); + it('should work', function (done) { + jwt.sign({abc: 1}, "secret", {}, function (err, res) { + expect(err).to.not.exist(); + done(); + }); + }); + it('should return error when secret is not a cert for RS256', function(done) { //this throw an error because the secret is not a cert and RS256 requires a cert. jwt.sign({ foo: 'bar' }, secret, { algorithm: 'RS256' }, function (err) {