test: tighten qqbot group config assertion · openclaw/openclaw@c4cd22a
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/qqbot/src/engine/config
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,14 +16,14 @@ describe("engine/config/group", () => {
|
16 | 16 | describe("resolveGroupConfig precedence", () => { |
17 | 17 | it("returns defaults when no config exists", () => { |
18 | 18 | const cfg = resolveGroupConfig({}, "G1"); |
19 | | -expect(cfg).toMatchObject({ |
| 19 | +expect(cfg).toStrictEqual({ |
20 | 20 | requireMention: true, |
21 | 21 | ignoreOtherMentions: false, |
22 | 22 | toolPolicy: "restricted", |
23 | 23 | name: "", |
| 24 | +prompt: undefined, |
24 | 25 | historyLimit: DEFAULT_GROUP_HISTORY_LIMIT, |
25 | 26 | }); |
26 | | -expect(cfg.prompt).toBeUndefined(); |
27 | 27 | }); |
28 | 28 | |
29 | 29 | it("falls back to wildcard when specific is missing", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。