Skip to content

Commit

Permalink
add redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
jfromaniello committed Jul 14, 2016
1 parent 598ed5a commit bece881
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/async_sign.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bece881

Please sign in to comment.