From 923c993e5aae36de74f9cfcfb7c9f6e4bcfdedfa Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 08:41:42 +0100 Subject: [PATCH] test: tighten tlon sse subscription assertions --- extensions/tlon/src/urbit/sse-client.test.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extensions/tlon/src/urbit/sse-client.test.ts b/extensions/tlon/src/urbit/sse-client.test.ts index da47b9ef8df..b92f3b5f1a6 100644 --- a/extensions/tlon/src/urbit/sse-client.test.ts +++ b/extensions/tlon/src/urbit/sse-client.test.ts @@ -49,8 +49,10 @@ describe("UrbitSSEClient", () => { const body = JSON.parse(callArgs.init?.body as string); expect(body).toHaveLength(1); - expect(body[0]).toMatchObject({ + expect(body[0]).toEqual({ + id: 1, action: "subscribe", + ship: "example", app: "chat", path: "/dm/~zod", }); @@ -72,7 +74,10 @@ describe("UrbitSSEClient", () => { expect(mockUrbitFetch).not.toHaveBeenCalled(); // But subscription should be queued expect(client.subscriptions).toHaveLength(1); - expect(client.subscriptions[0]).toMatchObject({ + expect(client.subscriptions[0]).toEqual({ + id: 1, + action: "subscribe", + ship: "example", app: "chat", path: "/dm/~zod", });