Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
44e3c8d changed the aud/iss mismatch error (auth0/node-jsonwebtoken#55)
  • Loading branch information
Chris Lush committed Apr 1, 2015
1 parent 14a8ccc commit b147120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/strategy.normal.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe('Strategy', function() {
chai.passport.use(new Strategy(secret, {audience: 'foo'}, function(token, done) { done(null, false)}))
.fail(function(challenge) {;
expect(challenge).to.be.a.string;
expect(challenge).to.equal('Bearer realm="Users", error="invalid_token", error_description="Invalid token (jwt audience invalid. expected: bar)"');
expect(challenge).to.equal('Bearer realm="Users", error="invalid_token", error_description="Invalid token (jwt audience invalid. expected: foo)"');
done();
})
.req(function(req) {
Expand All @@ -172,7 +172,7 @@ describe('Strategy', function() {
chai.passport.use(new Strategy(secret, {issuer: 'foo'}, function(token, done) { done(null, false)}))
.fail(function(challenge) {;
expect(challenge).to.be.a.string;
expect(challenge).to.equal('Bearer realm="Users", error="invalid_token", error_description="Invalid token (jwt issuer invalid. expected: bar)"');
expect(challenge).to.equal('Bearer realm="Users", error="invalid_token", error_description="Invalid token (jwt issuer invalid. expected: foo)"');
done();
})
.req(function(req) {
Expand Down

0 comments on commit b147120

Please sign in to comment.