Skip to content

Commit

Permalink
Merge pull request koajs#14 from michaelwestphal/master
Browse files Browse the repository at this point in the history
Update to the latest jsonwebtoken version
  • Loading branch information
stiang committed Mar 23, 2015
2 parents 9faf87f + ea421ab commit 68a8fab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
],
"main": "./lib",
"dependencies": {
"jsonwebtoken": "~1.2.x",
"jsonwebtoken": "~4.2.1",
"thunkify": "~2.1.x"
},
"devDependencies": {
"koa": "koajs/koa",
"mocha": "~1.12.0",
"supertest": "0.9.x"
"mocha": "~2.2.1",
"supertest": "~0.15.0"
},
"engines": {
"node": ">= 0.11.9"
Expand Down
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var koa = require('koa');
var request = require('supertest');
var assert = require('assert');

var koajwt = require('.');
var koajwt = require('./index');

describe('failure tests', function () {

Expand Down Expand Up @@ -77,7 +77,7 @@ describe('failure tests', function () {
.get('/')
.set('Authorization', 'Bearer ' + token)
.expect(401)
.expect('Invalid token - jwt audience invalid. expected: expected-audience\n')
.expect('Invalid token - jwt audience invalid. expected: not-expected-audience\n')
.end(done);
});

Expand Down Expand Up @@ -107,7 +107,7 @@ describe('failure tests', function () {
.get('/')
.set('Authorization', 'Bearer ' + token)
.expect(401)
.expect('Invalid token - jwt issuer invalid. expected: http://foo\n')
.expect('Invalid token - jwt issuer invalid. expected: http://wrong\n')
.end(done);
});

Expand Down

0 comments on commit 68a8fab

Please sign in to comment.