Skip to content

Commit 80d2583

Browse files
committed
fix tests
1 parent 6deb6b2 commit 80d2583

File tree

3 files changed

+105
-1
lines changed

3 files changed

+105
-1
lines changed

__tests__/neovis.tests.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* @jest-environment jsdom
3+
*/
4+
15
import Neo4j, * as Neo4jMockImport from 'neo4j-driver';
26
import Neovis, {
37
migrateFromOldConfig,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"eslint-plugin-jest": "^24.5.2",
5959
"jest": "^27.2.5",
6060
"jest-canvas-mock": "^2.3.1",
61+
"jsdom": "^17.0.0",
6162
"keycharm": "^0.4.0",
6263
"npm-run-all": "^4.1.5",
6364
"rimraf": "^3.0.2",

yarn.lock

Lines changed: 100 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2484,6 +2484,11 @@ cssom@^0.4.4:
24842484
resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10"
24852485
integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==
24862486

2487+
cssom@^0.5.0:
2488+
version "0.5.0"
2489+
resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.5.0.tgz#d254fa92cd8b6fbd83811b9fbaed34663cc17c36"
2490+
integrity sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==
2491+
24872492
cssom@~0.3.6:
24882493
version "0.3.8"
24892494
resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a"
@@ -2505,6 +2510,15 @@ data-urls@^2.0.0:
25052510
whatwg-mimetype "^2.3.0"
25062511
whatwg-url "^8.0.0"
25072512

2513+
data-urls@^3.0.0:
2514+
version "3.0.1"
2515+
resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-3.0.1.tgz#597fc2ae30f8bc4dbcf731fcd1b1954353afc6f8"
2516+
integrity sha512-Ds554NeT5Gennfoo9KN50Vh6tpgtvYEwraYjejXnyTpu1C7oXKxdFk75REooENHE8ndTVOJuv+BEs4/J/xcozw==
2517+
dependencies:
2518+
abab "^2.0.3"
2519+
whatwg-mimetype "^3.0.0"
2520+
whatwg-url "^10.0.0"
2521+
25082522
debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1:
25092523
version "4.3.1"
25102524
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee"
@@ -2524,6 +2538,11 @@ decimal.js@^10.2.1:
25242538
resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.2.1.tgz#238ae7b0f0c793d3e3cea410108b35a2c01426a3"
25252539
integrity sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw==
25262540

2541+
decimal.js@^10.3.1:
2542+
version "10.3.1"
2543+
resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.3.1.tgz#d8c3a444a9c6774ba60ca6ad7261c3a94fd5e783"
2544+
integrity sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==
2545+
25272546
dedent@^0.7.0:
25282547
version "0.7.0"
25292548
resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c"
@@ -2966,6 +2985,15 @@ form-data@^3.0.0:
29662985
combined-stream "^1.0.8"
29672986
mime-types "^2.1.12"
29682987

2988+
form-data@^4.0.0:
2989+
version "4.0.0"
2990+
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
2991+
integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
2992+
dependencies:
2993+
asynckit "^0.4.0"
2994+
combined-stream "^1.0.8"
2995+
mime-types "^2.1.12"
2996+
29692997
fs-readdir-recursive@^1.1.0:
29702998
version "1.1.0"
29712999
resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27"
@@ -3896,6 +3924,39 @@ jsdom@^16.6.0:
38963924
ws "^7.4.6"
38973925
xml-name-validator "^3.0.0"
38983926

3927+
jsdom@^17.0.0:
3928+
version "17.0.0"
3929+
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-17.0.0.tgz#3ec82d1d30030649c8defedc45fff6aa3e5d06ae"
3930+
integrity sha512-MUq4XdqwtNurZDVeKScENMPHnkgmdIvMzZ1r1NSwHkDuaqI6BouPjr+17COo4/19oLNnmdpFDPOHVpgIZmZ+VA==
3931+
dependencies:
3932+
abab "^2.0.5"
3933+
acorn "^8.4.1"
3934+
acorn-globals "^6.0.0"
3935+
cssom "^0.5.0"
3936+
cssstyle "^2.3.0"
3937+
data-urls "^3.0.0"
3938+
decimal.js "^10.3.1"
3939+
domexception "^2.0.1"
3940+
escodegen "^2.0.0"
3941+
form-data "^4.0.0"
3942+
html-encoding-sniffer "^2.0.1"
3943+
http-proxy-agent "^4.0.1"
3944+
https-proxy-agent "^5.0.0"
3945+
is-potential-custom-element-name "^1.0.1"
3946+
nwsapi "^2.2.0"
3947+
parse5 "6.0.1"
3948+
saxes "^5.0.1"
3949+
symbol-tree "^3.2.4"
3950+
tough-cookie "^4.0.0"
3951+
w3c-hr-time "^1.0.2"
3952+
w3c-xmlserializer "^2.0.0"
3953+
webidl-conversions "^6.1.0"
3954+
whatwg-encoding "^1.0.5"
3955+
whatwg-mimetype "^2.3.0"
3956+
whatwg-url "^9.0.0"
3957+
ws "^8.0.0"
3958+
xml-name-validator "^3.0.0"
3959+
38993960
jsesc@^2.5.1:
39003961
version "2.5.2"
39013962
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4"
@@ -5122,13 +5183,20 @@ tough-cookie@^4.0.0:
51225183
punycode "^2.1.1"
51235184
universalify "^0.1.2"
51245185

5125-
tr46@^2.0.2:
5186+
tr46@^2.0.2, tr46@^2.1.0:
51265187
version "2.1.0"
51275188
resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240"
51285189
integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==
51295190
dependencies:
51305191
punycode "^2.1.1"
51315192

5193+
tr46@^3.0.0:
5194+
version "3.0.0"
5195+
resolved "https://registry.yarnpkg.com/tr46/-/tr46-3.0.0.tgz#555c4e297a950617e8eeddef633c87d4d9d6cbf9"
5196+
integrity sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==
5197+
dependencies:
5198+
punycode "^2.1.1"
5199+
51325200
tslib@^1.8.1, tslib@^1.9.0:
51335201
version "1.14.1"
51345202
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
@@ -5341,6 +5409,11 @@ webidl-conversions@^6.1.0:
53415409
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514"
53425410
integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==
53435411

5412+
webidl-conversions@^7.0.0:
5413+
version "7.0.0"
5414+
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-7.0.0.tgz#256b4e1882be7debbf01d05f0aa2039778ea080a"
5415+
integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==
5416+
53445417
webpack-cli@^4.9.0:
53455418
version "4.9.0"
53465419
resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-4.9.0.tgz#dc43e6e0f80dd52e89cbf73d5294bcd7ad6eb343"
@@ -5415,6 +5488,19 @@ whatwg-mimetype@^2.3.0:
54155488
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf"
54165489
integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==
54175490

5491+
whatwg-mimetype@^3.0.0:
5492+
version "3.0.0"
5493+
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz#5fa1a7623867ff1af6ca3dc72ad6b8a4208beba7"
5494+
integrity sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==
5495+
5496+
whatwg-url@^10.0.0:
5497+
version "10.0.0"
5498+
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-10.0.0.tgz#37264f720b575b4a311bd4094ed8c760caaa05da"
5499+
integrity sha512-CLxxCmdUby142H5FZzn4D8ikO1cmypvXVQktsgosNy4a4BHrDHeciBBGZhb0bNoR5/MltoCatso+vFjjGx8t0w==
5500+
dependencies:
5501+
tr46 "^3.0.0"
5502+
webidl-conversions "^7.0.0"
5503+
54185504
whatwg-url@^8.0.0, whatwg-url@^8.5.0:
54195505
version "8.5.0"
54205506
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.5.0.tgz#7752b8464fc0903fec89aa9846fc9efe07351fd3"
@@ -5424,6 +5510,14 @@ whatwg-url@^8.0.0, whatwg-url@^8.5.0:
54245510
tr46 "^2.0.2"
54255511
webidl-conversions "^6.1.0"
54265512

5513+
whatwg-url@^9.0.0:
5514+
version "9.1.0"
5515+
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-9.1.0.tgz#1b112cf237d72cd64fa7882b9c3f6234a1c3050d"
5516+
integrity sha512-CQ0UcrPHyomtlOCot1TL77WyMIm/bCwrJ2D6AOKGwEczU9EpyoqAokfqrf/MioU9kHcMsmJZcg1egXix2KYEsA==
5517+
dependencies:
5518+
tr46 "^2.1.0"
5519+
webidl-conversions "^6.1.0"
5520+
54275521
which-boxed-primitive@^1.0.2:
54285522
version "1.0.2"
54295523
resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"
@@ -5493,6 +5587,11 @@ ws@^7.4.6:
54935587
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.5.tgz#8b4bc4af518cfabd0473ae4f99144287b33eb881"
54945588
integrity sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w==
54955589

5590+
ws@^8.0.0:
5591+
version "8.2.3"
5592+
resolved "https://registry.yarnpkg.com/ws/-/ws-8.2.3.tgz#63a56456db1b04367d0b721a0b80cae6d8becbba"
5593+
integrity sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==
5594+
54965595
xml-name-validator@^3.0.0:
54975596
version "3.0.0"
54985597
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a"

0 commit comments

Comments
 (0)