From 1958a556510fe60a8af2fe24e9e12c16cd9beea5 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Thu, 20 Jun 2019 21:38:29 +0200 Subject: [PATCH] adding new dev dependency to support the URL object --- js/common.js | 1 + js/package.json | 1 + tst/README.md | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/common.js b/js/common.js index c8f9b6ba..9f8a11f6 100644 --- a/js/common.js +++ b/js/common.js @@ -5,6 +5,7 @@ global.assert = require('assert'); global.jsc = require('jsverify'); global.jsdom = require('jsdom-global'); global.cleanup = global.jsdom(); +global.window.URL = require('jsdom-url'); global.fs = require('fs'); global.WebCrypto = require('node-webcrypto-ossl'); diff --git a/js/package.json b/js/package.json index 7993fbce..38543392 100644 --- a/js/package.json +++ b/js/package.json @@ -10,6 +10,7 @@ "devDependencies": { "jsdom": "^9.12.0", "jsdom-global": "^2.1.1", + "jsdom-url": "^2.2.1", "jsverify": "^0.8.3", "mime-types": "^2.1.20", "node-webcrypto-ossl": "^1.0.37" diff --git a/tst/README.md b/tst/README.md index d6db6bfe..10af5704 100644 --- a/tst/README.md +++ b/tst/README.md @@ -89,7 +89,7 @@ and jsdom-global locally: ```console $ npm install -g mocha nyc $ cd PrivateBin/js -$ npm install jsverify jsdom@9 jsdom-global@2 mime-types node-webcrypto-ossl +$ npm install jsverify jsdom@9 jsdom-global@2 mime-types node-webcrypto-ossl jsdom-url ``` Example for Debian and Ubuntu, including steps to allow the current user to