test: assert matrix poll parsing · openclaw/openclaw@b00e84e
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/matrix/src/matrix
| Original file line number | Diff line number | Diff line change |
|---|
@@ -41,12 +41,13 @@ describe("parsePollStartContent", () => {
|
41 | 41 | }, |
42 | 42 | }); |
43 | 43 | |
44 | | -expect(parsed).toMatchObject({ |
| 44 | +expect(parsed).toEqual({ |
45 | 45 | question: "Lunch?", |
46 | 46 | answers: [ |
47 | 47 | { id: "a1", text: "Yes" }, |
48 | 48 | { id: "a2", text: "No" }, |
49 | 49 | ], |
| 50 | +kind: "m.poll.disclosed", |
50 | 51 | maxSelections: 1, |
51 | 52 | }); |
52 | 53 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。