From 4bd22eb17a86ee5641eb82ce45320770f476cfc0 Mon Sep 17 00:00:00 2001 From: Daniel Huigens Date: Tue, 18 Feb 2020 11:49:46 +0100 Subject: [PATCH] Unit tests: eval config query parameters instead of parsing as JSON --- test/unittests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unittests.js b/test/unittests.js index de747fcd..c639037c 100644 --- a/test/unittests.js +++ b/test/unittests.js @@ -51,7 +51,7 @@ describe('Unit Tests', function () { if (key && key !== 'grep') { openpgp.config[key] = decodeURIComponent(value); try { - openpgp.config[key] = JSON.parse(openpgp.config[key]); + openpgp.config[key] = eval(openpgp.config[key]); } catch(e) {} } });