switching webcrypto library to native node crypto implementation (requires node>=10)
This commit is contained in:
parent
7794915172
commit
dfed1a4b45
|
@ -7,7 +7,7 @@ global.jsdom = require('jsdom-global');
|
||||||
global.cleanup = global.jsdom();
|
global.cleanup = global.jsdom();
|
||||||
global.URL = require('jsdom-url').URL;
|
global.URL = require('jsdom-url').URL;
|
||||||
global.fs = require('fs');
|
global.fs = require('fs');
|
||||||
global.WebCrypto = require('node-webcrypto-ossl');
|
global.WebCrypto = require('@peculiar/webcrypto').Crypto;
|
||||||
|
|
||||||
// application libraries to test
|
// application libraries to test
|
||||||
global.$ = global.jQuery = require('./jquery-3.4.1');
|
global.$ = global.jQuery = require('./jquery-3.4.1');
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"jsdom-global": "^2.1.1",
|
"jsdom-global": "^2.1.1",
|
||||||
"jsdom-url": "^2.2.1",
|
"jsdom-url": "^2.2.1",
|
||||||
"jsverify": "^0.8.3",
|
"jsverify": "^0.8.3",
|
||||||
"node-webcrypto-ossl": "^1.0.37"
|
"@peculiar/webcrypto": "^1.1.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha"
|
"test": "mocha"
|
||||||
|
|
|
@ -104,7 +104,8 @@ $ cd PrivateBin/js
|
||||||
$ npm install
|
$ npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
To run the tests, just change into the `js` directory and run istanbul:
|
To run the tests, just change into the `js` directory and run nyc (will produce
|
||||||
|
coverage report) or just mocha:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ cd PrivateBin/js
|
$ cd PrivateBin/js
|
||||||
|
|
Loading…
Reference in New Issue