mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: tighten qqbot streaming framework assertion
This commit is contained in:
@@ -108,7 +108,9 @@ describe("registerQQBotFrameworkCommands", () => {
|
||||
const result = await command.handler(createCommandContext(config, "qqbot:c2c:TRUSTED_OPENID"));
|
||||
|
||||
const qqbot = getWrittenQQBotConfig(writes[0]);
|
||||
expect(result).toMatchObject({ text: expect.stringContaining("已开启") });
|
||||
expect(result).toEqual({
|
||||
text: "✅ 流式消息已开启\n\nAI 的回复将以流式形式逐步显示(仅私聊生效)。",
|
||||
});
|
||||
expect(writes).toHaveLength(1);
|
||||
expect(qqbot?.streaming).toBe(true);
|
||||
expect(qqbot?.accounts?.default?.streaming).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user