test: tighten memory wiki schema assertion · openclaw/openclaw@1744426
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
File tree
extensions/memory-wiki/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,6 +3,7 @@ import type { ResolvedMemoryWikiConfig } from "./config.js";
|
3 | 3 | import { createWikiApplyTool } from "./tool.js"; |
4 | 4 | |
5 | 5 | function asSchemaObject(value: unknown): Record<string, unknown> { |
| 6 | +expect(typeof value).toBe("object"); |
6 | 7 | expect(value).toEqual(expect.any(Object)); |
7 | 8 | expect(Array.isArray(value)).toBe(false); |
8 | 9 | if (typeof value !== "object" || value === null || Array.isArray(value)) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。