From 8857ee77623104e5cf9955932165ddf9cea1b72c Mon Sep 17 00:00:00 2001 From: Neuti Yoo <25740248+neutiyoo@users.noreply.github.com> Date: Sat, 5 Sep 2020 15:25:20 +0900 Subject: [PATCH] test: remove unused variable (#96) --- test/jws.test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/jws.test.js b/test/jws.test.js index 77afe0b..aa11bdd 100644 --- a/test/jws.test.js +++ b/test/jws.test.js @@ -295,9 +295,8 @@ test('jws.decode: with invalid json in body', function (t) { const header = Buffer.from('{"alg":"HS256","typ":"JWT"}').toString('base64'); const payload = Buffer.from('sup').toString('base64'); const sig = header + '.' + payload + '.'; - var parts; t.throws(function () { - parts = jws.decode(sig); + jws.decode(sig); }) t.end(); });