@@ -138,9 +138,7 @@ describe("TwitchClientManager", () => {
|
138 | 138 | |
139 | 139 | // New implementation: connect is called, channels are passed to constructor |
140 | 140 | expect(mockConnect).toHaveBeenCalledTimes(1); |
141 | | -expect(mockLogger.info).toHaveBeenCalledWith( |
142 | | -expect.stringContaining("Connected to Twitch as testbot"), |
143 | | -); |
| 141 | +expect(mockLogger.info).toHaveBeenCalledWith("Connected to Twitch as testbot"); |
144 | 142 | }); |
145 | 143 | |
146 | 144 | it("should use account username as default channel when channel not specified", async () => { |
@@ -213,9 +211,7 @@ describe("TwitchClientManager", () => {
|
213 | 211 | "Missing Twitch client ID", |
214 | 212 | ); |
215 | 213 | |
216 | | -expect(mockLogger.error).toHaveBeenCalledWith( |
217 | | -expect.stringContaining("Missing Twitch client ID"), |
218 | | -); |
| 214 | +expect(mockLogger.error).toHaveBeenCalledWith("Missing Twitch client ID for account testbot"); |
219 | 215 | }); |
220 | 216 | |
221 | 217 | it("should throw error when token is missing", async () => { |
@@ -372,9 +368,7 @@ describe("TwitchClientManager", () => {
|
372 | 368 | |
373 | 369 | expect(result.ok).toBe(false); |
374 | 370 | expect(result.error).toBe("Rate limited"); |
375 | | -expect(mockLogger.error).toHaveBeenCalledWith( |
376 | | -expect.stringContaining("Failed to send message"), |
377 | | -); |
| 371 | +expect(mockLogger.error).toHaveBeenCalledWith("Failed to send message: Rate limited"); |
378 | 372 | }); |
379 | 373 | |
380 | 374 | it("should handle unknown error types", async () => { |
|