From aef3a3956103fac91ab190a78448ca6feb8407d0 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 23:48:52 +0100 Subject: [PATCH] test: specify googlechat directory entries --- extensions/googlechat/src/channel.test.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/extensions/googlechat/src/channel.test.ts b/extensions/googlechat/src/channel.test.ts index b9611e97270..badc399afd7 100644 --- a/extensions/googlechat/src/channel.test.ts +++ b/extensions/googlechat/src/channel.test.ts @@ -703,8 +703,10 @@ describe("googlechat directory", () => { limit: undefined, runtime: runtimeEnv, }); - expect(peers).toContainEqual({ kind: "user", id: "users/alice" }); - expect(peers).toContainEqual({ kind: "user", id: "bob" }); + expect(peers).toStrictEqual([ + { kind: "user", id: "users/alice" }, + { kind: "user", id: "bob" }, + ]); const groups = await directory.listGroups({ cfg, @@ -713,8 +715,10 @@ describe("googlechat directory", () => { limit: undefined, runtime: runtimeEnv, }); - expect(groups).toContainEqual({ kind: "group", id: "spaces/AAA" }); - expect(groups).toContainEqual({ kind: "group", id: "spaces/BBB" }); + expect(groups).toStrictEqual([ + { kind: "group", id: "spaces/AAA" }, + { kind: "group", id: "spaces/BBB" }, + ]); }); it("normalizes spaced provider-prefixed dm allowlist entries", async () => { @@ -736,8 +740,10 @@ describe("googlechat directory", () => { limit: undefined, runtime: runtimeEnv, }); - expect(peers).toContainEqual({ kind: "user", id: "users/alice" }); - expect(peers).toContainEqual({ kind: "user", id: "users/bob@example.com" }); + expect(peers).toStrictEqual([ + { kind: "user", id: "users/alice" }, + { kind: "user", id: "users/bob@example.com" }, + ]); }); });