diff --git a/packages/testkit/src/inbox.test.ts b/packages/testkit/src/inbox.test.ts index 22dfc2f..8016419 100644 --- a/packages/testkit/src/inbox.test.ts +++ b/packages/testkit/src/inbox.test.ts @@ -207,14 +207,20 @@ describeInbox("inbox.list", () => { // Items of the current space carry no space. expect(items.filter((item) => item.space).map((item) => item.bot.id)).toEqual([remote.id]); - // From the other space, the same items with the sides swapped. + // From the other space, the same items with the sides swapped, plus the ask in the home + // main conversation: Remote's own main conversation does not show it. const fromRemote = await listInbox(app, cookie, remoteSpace.id); expect(fromRemote.map((item) => [item.kind, item.space?.id ?? null])).toEqual([ ["approval", me.spaceId], + ["ask", me.spaceId], ["takeover", me.spaceId], ["ask", null], ["unread", me.spaceId], ]); + expect(fromRemote[1]).toMatchObject({ + bot: expect.objectContaining({ id: scout.id }), + target: { groupId: main.groupId }, + }); }); it("answers an item from another space only in that space and only for its owner", async () => {