Skip to content

Commit

Permalink
Fixing tests for api change.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdobson committed Mar 8, 2017
1 parent ed1607f commit c8cd613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/verify-api-key-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('verify-api-key plugin', () => {
}

if (body.key === 'INVALID-KEY') {
res.end(JSON.stringify({type: 'ErrorResult', result: {errorCode: "PROVIDED_ERROR_CODE"}}));
res.end(JSON.stringify({type: 'ErrorResult', result: {errorCode: "PROVIDED_ERROR_CODE", reason: "LOL KEY ISNT HERE"}}));
} else if (body.key === 'REVOKED-KEY') {
res.end(JSON.stringify({result:{status: 'REVOKED'}}))
}
Expand Down Expand Up @@ -112,7 +112,7 @@ describe('verify-api-key plugin', () => {
}
var res = {proxy: proxy};
var cb = (err, result) => {
assert.equal(err, "PROVIDED_ERROR_CODE");
assert.equal(err, "LOL KEY ISNT HERE");
assert.equal(res.statusCode, 401);
done();
}
Expand Down

0 comments on commit c8cd613

Please sign in to comment.