同步完整源码至远程:扁平化重构现状 + 未入库源文件
- 补入库:server/internal/db/dump.go、redis 分页/扫描预算测试、opsxdb-mcp main_test、 packages/opsxdb-mcp package-lock、docs 审计与对比文档等 37 个新文件 - 含结构扁平化进行中的 80 处修改与 155 处旧结构删除(server/ src/ src-tauri/ 为当前有效源) - 构建产物(bin/target/dist)与签名私钥仍按规则排除
This commit is contained in:
1 parent
5c0be49217
commit
2c0bfafd8d
269 files changed
+10372
-16435
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { afterEach, expect, it } from "vitest";
|
||||
import { useWorkspaceStore } from "./store";
|
||||
|
||||
const previous = useWorkspaceStore.getState();
|
||||
afterEach(() => useWorkspaceStore.setState(previous, true));
|
||||
|
||||
it("常规成功反馈静默,任务完成与警告仍可见", () => {
|
||||
useWorkspaceStore.setState({ notifyToasts: [] });
|
||||
const state = useWorkspaceStore.getState();
|
||||
state.notify({ kind: "success", title: "已复制", message: "SQL 已复制", mode: "toast" });
|
||||
state.notify({ kind: "success", title: "已格式化", message: "可撤销", mode: "toast" });
|
||||
expect(useWorkspaceStore.getState().notifyToasts).toHaveLength(0);
|
||||
|
||||
state.notify({ kind: "success", title: "导出完成", message: "结果.csv", mode: "toast", feedback: "visible" });
|
||||
state.notify({ kind: "warning", title: "行数无效", message: "请输入整数", mode: "toast" });
|
||||
expect(useWorkspaceStore.getState().notifyToasts.map(n => n.title)).toEqual(["导出完成", "行数无效"]);
|
||||
});
|
||||
Reference in new issue
Block a user