From e885fd93e0e7f5ee3cfeb4087f919d56a972501e Mon Sep 17 00:00:00 2001 From: Paul Berg Date: Mon, 16 Apr 2018 09:39:17 +0100 Subject: [PATCH] Update index.js Solves https://github.com/chaijs/chai/issues/41 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3dea03b..595e9e8 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,7 @@ module.exports = function (chai, utils) { ); }); - utils.addProperty(Assertion.prototype, 'jwt', function () { + Assertion.addMethod('jwt', function () { const decoded = jwt.decode(this._obj); this.assert(