diff --git a/package-lock.json b/package-lock.json index 4e4a90dc67..82f4e498ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8424,6 +8424,15 @@ "integrity": "sha512-QCWHkbMv4Y5U9oW10Uxbr45qMMSzl4OzijsozynUAgx3kEHUdXB00udx2dWDQ7f2TU2a2uuiFaRZjCe3unPpeg==", "dev": true }, + "node_modules/@types/mocha-each": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mocha-each/-/mocha-each-2.0.0.tgz", + "integrity": "sha512-wZWPqB+pnH9SL7qzORZha1dBt5ypYgPYDSma9wwtQVGmu36QonRWnc8hbJwgMaCPYHTHzrAGMnwp+we/SGI2YQ==", + "dev": true, + "dependencies": { + "@types/mocha": "*" + } + }, "node_modules/@types/mongodb": { "version": "3.6.20", "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.20.tgz", @@ -22993,6 +23002,15 @@ "url": "https://opencollective.com/mochajs" } }, + "node_modules/mocha-each": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mocha-each/-/mocha-each-2.0.1.tgz", + "integrity": "sha512-0ZgWY5ajbnROXkfyaDb+0RAYzDBH3QVow/1zJiyl7lYMRnj1Nid8RDP2+/2TTajB5n4vr21v35MjB72GjFFj2g==", + "dev": true, + "dependencies": { + "sprintf-js": "^1.0.3" + } + }, "node_modules/mocha/node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", @@ -34516,6 +34534,7 @@ "@types/events": "^3.0.0", "@types/express": "^4.17.13", "@types/mocha": "^9.1.0", + "@types/mocha-each": "^2.0.0", "@types/react": "^17.0.40", "@types/react-bootstrap": "^0.32.29", "@types/react-dom": "^17.0.13", @@ -34568,6 +34587,7 @@ "mensch": "^0.3.4", "mini-css-extract-plugin": "^2.6.0", "mocha": "^10.2.0", + "mocha-each": "^2.0.1", "mock-fs": "^5.1.2", "nock": "^13.1.1", "node-fetch": "^2.6.7", @@ -43520,6 +43540,7 @@ "@types/events": "^3.0.0", "@types/express": "^4.17.13", "@types/mocha": "^9.1.0", + "@types/mocha-each": "^2.0.0", "@types/react": "^17.0.40", "@types/react-bootstrap": "^0.32.29", "@types/react-dom": "^17.0.13", @@ -43645,6 +43666,7 @@ "minimist": "^1.2.7", "mmmagic": "^0.5.3", "mocha": "^10.2.0", + "mocha-each": "^2.0.1", "mock-fs": "^5.1.2", "moment": "^2.29.4", "mongodb": "~3.6.0", @@ -46407,6 +46429,15 @@ "integrity": "sha512-QCWHkbMv4Y5U9oW10Uxbr45qMMSzl4OzijsozynUAgx3kEHUdXB00udx2dWDQ7f2TU2a2uuiFaRZjCe3unPpeg==", "dev": true }, + "@types/mocha-each": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mocha-each/-/mocha-each-2.0.0.tgz", + "integrity": "sha512-wZWPqB+pnH9SL7qzORZha1dBt5ypYgPYDSma9wwtQVGmu36QonRWnc8hbJwgMaCPYHTHzrAGMnwp+we/SGI2YQ==", + "dev": true, + "requires": { + "@types/mocha": "*" + } + }, "@types/mongodb": { "version": "3.6.20", "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.20.tgz", @@ -58019,6 +58050,15 @@ } } }, + "mocha-each": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mocha-each/-/mocha-each-2.0.1.tgz", + "integrity": "sha512-0ZgWY5ajbnROXkfyaDb+0RAYzDBH3QVow/1zJiyl7lYMRnj1Nid8RDP2+/2TTajB5n4vr21v35MjB72GjFFj2g==", + "dev": true, + "requires": { + "sprintf-js": "^1.0.3" + } + }, "mock-fs": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-5.2.0.tgz", diff --git a/services/web/package.json b/services/web/package.json index 106a3b19b2..7787549a2e 100644 --- a/services/web/package.json +++ b/services/web/package.json @@ -261,6 +261,7 @@ "@types/events": "^3.0.0", "@types/express": "^4.17.13", "@types/mocha": "^9.1.0", + "@types/mocha-each": "^2.0.0", "@types/react": "^17.0.40", "@types/react-bootstrap": "^0.32.29", "@types/react-dom": "^17.0.13", @@ -313,6 +314,7 @@ "mensch": "^0.3.4", "mini-css-extract-plugin": "^2.6.0", "mocha": "^10.2.0", + "mocha-each": "^2.0.1", "mock-fs": "^5.1.2", "nock": "^13.1.1", "node-fetch": "^2.6.7", diff --git a/services/web/test/frontend/helpers/editor-providers.js b/services/web/test/frontend/helpers/editor-providers.js index a30e400a76..7164f5df13 100644 --- a/services/web/test/frontend/helpers/editor-providers.js +++ b/services/web/test/frontend/helpers/editor-providers.js @@ -52,6 +52,7 @@ export function EditorProviders({ findEntityByPath: () => null, getEntityPath: () => '', getRootDocDirname: () => '', + getPreviewUrlByPath: path => path, }, editorManager = { getCurrentDocId: () => 'foo',