test: tighten qqbot streaming framework assertion · openclaw/openclaw@8ec63b4
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/qqbot/src/bridge/commands
| Original file line number | Diff line number | Diff line change |
|---|
@@ -108,7 +108,9 @@ describe("registerQQBotFrameworkCommands", () => {
|
108 | 108 | const result = await command.handler(createCommandContext(config, "qqbot:c2c:TRUSTED_OPENID")); |
109 | 109 | |
110 | 110 | const qqbot = getWrittenQQBotConfig(writes[0]); |
111 | | -expect(result).toMatchObject({ text: expect.stringContaining("已开启") }); |
| 111 | +expect(result).toEqual({ |
| 112 | +text: "✅ 流式消息已开启\n\nAI 的回复将以流式形式逐步显示(仅私聊生效)。", |
| 113 | +}); |
112 | 114 | expect(writes).toHaveLength(1); |
113 | 115 | expect(qqbot?.streaming).toBe(true); |
114 | 116 | expect(qqbot?.accounts?.default?.streaming).toBe(true); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。