test: tighten matrix pins summary assertion

This commit is contained in:
Shakker
2026-05-10 23:32:26 +01:00
parent 4b8c600f99
commit bc24d30be4

View File

@@ -65,10 +65,15 @@ describe("matrix pins actions", () => {
expect(result.pinned).toEqual(["$a", "$missing"]);
expect(result.events).toEqual([
expect.objectContaining({
eventId: "$a",
{
attachment: undefined,
body: "hello",
}),
eventId: "$a",
msgtype: "m.text",
relatesTo: undefined,
sender: "@alice:example.org",
timestamp: 123,
},
]);
});
});