mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
test: assert matrix action schema fields
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user