test: assert matrix action schema fields

This commit is contained in:
Shakker
2026-05-11 11:19:03 +01:00
parent 225cbb7b21
commit ab12985d71
+11 -5
View File
@@ -95,11 +95,17 @@ describe("matrixMessageActions", () => {
expect(discovery.mediaSourceParams).toEqual({
"set-profile": ["avatarUrl", "avatarPath"],
});
expect(properties).toMatchObject({
displayName: expect.any(Object),
avatarUrl: expect.any(Object),
avatarPath: expect.any(Object),
});
expect(Object.keys(properties).sort()).toEqual([
"avatarPath",
"avatarUrl",
"avatar_path",
"avatar_url",
"displayName",
"display_name",
]);
expect(properties.displayName).toHaveProperty("type", "string");
expect(properties.avatarUrl).toHaveProperty("type", "string");
expect(properties.avatarPath).toHaveProperty("type", "string");
});
it("hides self-profile updates for non-owner discovery", () => {