An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:white_check_mark: Align asset upload lifecycle mocks with filename parsing https://github.com/siyuan-note/siyuan/issues/20838
Daniel7a537de4cf2b
diff --git a/app/src/protyle/render/av/assetUploadLifecycle.test.ts b/app/src/protyle/render/av/assetUploadLifecycle.test.tsindex de27d70877..54b3f9c900 100644--- a/app/src/protyle/render/av/assetUploadLifecycle.test.ts+++ b/app/src/protyle/render/av/assetUploadLifecycle.test.ts@@ -1,7 +1,7 @@import {describe, it} from "node:test";import * as assert from "node:assert/strict";import {readFileSync} from "node:fs";-import {join} from "node:path";+import {join, posix} from "node:path";import {runInNewContext} from "node:vm";import {ModuleKind, ScriptTarget, transpileModule} from "typescript";import {DOMFixture, DOMElement} from "./testDOM";@@ -99,7 +99,7 @@ const createHarness = (standalone = true) => {"./col": {getColId: (item: HTMLElement) => item.dataset.colId},"./row": {getFieldIdByCellElement: (item: HTMLElement) => item.dataset.rowId},"./batchValue": {getAVBatchEditMode: () => "replace"},- "../../../util/pathName": {getAssetExtension: (name: string) => name.slice(name.lastIndexOf("."))},+ "../../../util/pathName": {pathPosix: () => posix},"../../util/hasClosest": {hasClosestBlock: (item: HTMLElement) => item.parentElement},"../../wysiwyg/transaction": {transaction: (_p: unknown, ops: IOperation[]) => operations.push(...ops)},"./action": {updateAttrViewCellAnimation() {}},