| ... | @@ -1333,9 +1333,7 @@ describe("WebSocket Server", () => { | ... | @@ -1333,9 +1333,7 @@ describe("WebSocket Server", () => { |
| 1333 | }; | 1333 | }; |
| 1334 | terminalManager.emitEvent(manualEvent); | 1334 | terminalManager.emitEvent(manualEvent); |
| 1335 | | 1335 | |
| 1336 | const push = (await waitForMessage(ws)) as WsPush; | 1336 | const push = await waitForPush(ws, WS_CHANNELS.terminalEvent); |
| 1337 | expect(push.type).toBe("push"); | | |
| 1338 | expect(push.channel).toBe(WS_CHANNELS.terminalEvent); | | |
| 1339 | expect((push.data as TerminalEvent).type).toBe("output"); | 1337 | expect((push.data as TerminalEvent).type).toBe("output"); |
| 1340 | }); | 1338 | }); |
| 1341 | | 1339 | |