Unit tests: eval config query parameters instead of parsing as JSON

This commit is contained in:
Daniel Huigens 2020-02-18 11:49:46 +01:00
parent 8c3bcd1f21
commit 4bd22eb17a

View File

@ -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) {}
}
});