diff --git a/extensions/discord/src/monitor.test.ts b/extensions/discord/src/monitor.test.ts index 87080e5b14e..e81ac2c6815 100644 --- a/extensions/discord/src/monitor.test.ts +++ b/extensions/discord/src/monitor.test.ts @@ -269,7 +269,11 @@ describe("discord allowlist helpers", () => { allowFrom: ["*", "user:123"], sender: { id: "123" }, }); - expect(explicitOwner.ownerAllowList).not.toBeNull(); + if (explicitOwner.ownerAllowList === null) { + throw new Error("Expected explicit owner allowlist"); + } + expect(explicitOwner.ownerAllowList.allowAll).toBe(false); + expect(explicitOwner.ownerAllowList.ids).toEqual(new Set(["123"])); expect(explicitOwner.ownerAllowed).toBe(true); }); });