Skip to content

Commit

Permalink
Merge pull request #36 from rhewitt22/patch-2
Browse files Browse the repository at this point in the history
Fix jwt version test
  • Loading branch information
hokaccha committed Feb 18, 2016
2 parents a274520 + 41df336 commit c9fd642
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 c9fd642

Please # to comment.