From 004bb2013e7897f398e4e1a779f40ccd9feaa972 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 08:48:55 +0100 Subject: [PATCH] test: tighten device pair notify assertions --- extensions/device-pair/notify.test.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/extensions/device-pair/notify.test.ts b/extensions/device-pair/notify.test.ts index 9b4166a0e16..fa548fe6f9a 100644 --- a/extensions/device-pair/notify.test.ts +++ b/extensions/device-pair/notify.test.ts @@ -149,11 +149,17 @@ describe("device-pair notify persistence", () => { const persisted = JSON.parse( await fs.readFile(path.join(stateDir, "device-pair-notify.json"), "utf8"), - ) as { subscribers: Array<{ to: string; accountId?: string }> }; - expect(persisted.subscribers).toHaveLength(1); - expect(persisted.subscribers[0]).toMatchObject({ - to: "chat|123", - accountId: "acct", + ) as unknown; + expect(persisted).toStrictEqual({ + subscribers: [ + { + to: "chat|123", + accountId: "acct", + mode: "persistent", + addedAtMs: 1, + }, + ], + notifiedRequestIds: {}, }); }); });