docs(tests): clarify workspace and legacy model test coverage

This commit is contained in:
2026-11-12 17:10:28 +08:00
parent c735c00de8
commit 81055e14a1
5 changed files with 5 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@ import { resizeFromPointer } from "../src/lib/canvas-geometry.ts";
function seeded() { return { ...emptyCanvas(), nodes: [makeCanvasNode("text", { x: 100, y: 200 })] }; }
// 从同一父节点分别创建 text/script/image,检查连线端口、图片源、快照往返,再用一次 replace 历史整体撤销。
// 图片只传符合字符串语法的 data URL,没有上传或图片解码;该断言不验证文件内容可显示。
test("branch type selection creates the chosen text, script or uploaded image and keeps the link in one undo step", () => {
for (const kind of ["text", "script", "image"]) {
const original = seeded();