Skip to content

Commit

Permalink
Fix jwt version test
Browse files Browse the repository at this point in the history
The test 'jwt has `version` property' was actually testing that the decode method is a function.  That test already exists.
  • Loading branch information
rhewitt22 committed Feb 17, 2016
1 parent a274520 commit 41df336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var package = require('../package.json');

describe('jwt', function() {
it('jwt has `version` property', function() {
expect(jwt.decode).to.be.a('function');
expect(jwt.version).to.be.a('string');
});

it('jwt has `encode` method', function() {
Expand Down Expand Up @@ -36,7 +36,7 @@ describe('encode', function() {
expect(fn).to.throwError(/Require key/);
});

it('throw en error when the specified algorithm is not supported', function() {
it('throw an error when the specified algorithm is not supported', function() {
var fn = jwt.encode.bind(null, { foo: 'bar' }, 'some_key', 'FooBar256');
expect(fn).to.throwError(/Algorithm not supported/);
});
Expand Down

0 comments on commit 41df336

Please sign in to comment.