Commit e8628b9
authored
chore: fix test suite in Node 22 (#1642)
Node now provides a `navigator` global (https://nodejs.org/api/globals.html#navigator_1), which could cause JSONEditor's test suite to fail with the following error.
```
Exception during run: TypeError: Cannot set property navigator of #<Object> which has only a getter
at setUpTestEnvironment (jsoneditor/test/setup.js:16:19)
at Object.<anonymous> (jsoneditor/test/setup.js:22:1)
```1 parent 4dbd88e commit e8628b9
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
0 commit comments