From 41df336da82cd1cddec361cd34539370edde4406 Mon Sep 17 00:00:00 2001 From: Roy Hewitt Date: Wed, 17 Feb 2016 14:12:42 -0500 Subject: [PATCH] Fix jwt version test The test 'jwt has `version` property' was actually testing that the decode method is a function. That test already exists. --- test/basic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/basic.js b/test/basic.js index bd12f70..7f671f5 100644 --- a/test/basic.js +++ b/test/basic.js @@ -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() { @@ -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/); });