adding new dev dependency to support the URL object
This commit is contained in:
parent
77419ec2c1
commit
1958a55651
@ -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');
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user