


























@@ -93,11 +93,15 @@ describe("handleMatrixAction pollVote", () => {
9393optionIds: ["a2", "a1"],
9494optionIndexes: [1, 2],
9595});
96-expect(result.details).toMatchObject({
96+expect(result.details).toEqual({
9797ok: true,
9898result: {
9999eventId: "evt-poll-vote",
100+roomId: "!room:example",
101+pollId: "$poll",
100102answerIds: ["a1", "a2"],
103+labels: ["Pizza", "Sushi"],
104+maxSelections: 2,
101105},
102106});
103107});
@@ -192,9 +196,9 @@ describe("handleMatrixAction pollVote", () => {
192196accountId: "ops",
193197limit: 5,
194198});
195-expect(result.details).toMatchObject({
199+expect(result.details).toEqual({
196200ok: true,
197-reactions: [{ key: "👍", count: 1 }],
201+reactions: [{ key: "👍", count: 1, users: ["@u:example"] }],
198202});
199203});
200204@@ -361,13 +365,19 @@ describe("handleMatrixAction pollVote", () => {
361365displayName: "Ops Bot",
362366avatarUrl: "mxc://example/avatar",
363367});
364-expect(result.details).toMatchObject({
368+expect(result.details).toEqual({
365369ok: true,
366370accountId: "ops",
371+displayName: "Ops Bot",
372+avatarUrl: "mxc://example/avatar",
367373profile: {
368374displayNameUpdated: true,
369375avatarUpdated: true,
376+resolvedAvatarUrl: "mxc://example/avatar",
377+uploadedAvatarSource: null,
378+convertedAvatarFromHttp: false,
370379},
380+configPath: "channels.matrix.accounts.ops",
371381});
372382});
373383此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。