adding new dev dependency to support the URL object

This commit is contained in:
El RIDO 2019-06-20 21:38:29 +02:00
parent 77419ec2c1
commit 1958a55651
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
3 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,7 @@ global.assert = require('assert');
global.jsc = require('jsverify'); global.jsc = require('jsverify');
global.jsdom = require('jsdom-global'); global.jsdom = require('jsdom-global');
global.cleanup = global.jsdom(); global.cleanup = global.jsdom();
global.window.URL = require('jsdom-url');
global.fs = require('fs'); global.fs = require('fs');
global.WebCrypto = require('node-webcrypto-ossl'); global.WebCrypto = require('node-webcrypto-ossl');

View file

@ -10,6 +10,7 @@
"devDependencies": { "devDependencies": {
"jsdom": "^9.12.0", "jsdom": "^9.12.0",
"jsdom-global": "^2.1.1", "jsdom-global": "^2.1.1",
"jsdom-url": "^2.2.1",
"jsverify": "^0.8.3", "jsverify": "^0.8.3",
"mime-types": "^2.1.20", "mime-types": "^2.1.20",
"node-webcrypto-ossl": "^1.0.37" "node-webcrypto-ossl": "^1.0.37"

View file

@ -89,7 +89,7 @@ and jsdom-global locally:
```console ```console
$ npm install -g mocha nyc $ npm install -g mocha nyc
$ cd PrivateBin/js $ 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 Example for Debian and Ubuntu, including steps to allow the current user to