test: tighten twitch client log assertions · openclaw/openclaw@694d1c5
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -232,7 +232,7 @@ describe("TwitchClientManager", () => {
|
232 | 232 | await manager.getClient(testAccount); |
233 | 233 | |
234 | 234 | expect(mockOnMessage).toHaveBeenCalled(); |
235 | | -expect(mockLogger.info).toHaveBeenCalledWith(expect.stringContaining("Set up handlers for")); |
| 235 | +expect(mockLogger.info).toHaveBeenCalledWith("Set up handlers for testbot:testchannel"); |
236 | 236 | }); |
237 | 237 | |
238 | 238 | it("should create separate clients for same account with different channels", async () => { |
@@ -279,7 +279,7 @@ describe("TwitchClientManager", () => {
|
279 | 279 | await manager.disconnect(testAccount); |
280 | 280 | |
281 | 281 | expect(mockQuit).toHaveBeenCalledTimes(1); |
282 | | -expect(mockLogger.info).toHaveBeenCalledWith(expect.stringContaining("Disconnected")); |
| 282 | +expect(mockLogger.info).toHaveBeenCalledWith("Disconnected testbot:testchannel"); |
283 | 283 | }); |
284 | 284 | |
285 | 285 | it("should clear client and message handler", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。