Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Restore mobile slash super block test dependencies https://github.com/siyuan-note/siyuan/issues/20303

Danielaef794d504a2
diff --git a/app/tests/superBlockCreation.test.js b/app/tests/superBlockCreation.test.js
index 4693e254b4..cbde2261ce 100644
--- a/app/tests/superBlockCreation.test.js
+++ b/app/tests/superBlockCreation.test.js
@@ -58,6 +58,16 @@ const cases = async source => {
const transaction = (_protyle, forward, backward) => submitted.push({forward, backward});
const getEditorRange = () => protyle.toolbar.range;
const deps = {
+ SLASH_MENU_ROOT_PATH: "mobile.slash",
+ hintSlash: () => [],
+ getFrequentSlashButtons: () => [],
+ getFrequentSlashItems: () => [],
+ prependFrequentSlashButtons: () => {},
+ escapeHtml: value => {
+ const element = document.createElement("div");
+ element.textContent = value;
+ return element.innerHTML;
+ },
Constants,
transaction,
getEditorRange,