test: tighten matrix pairing message assertion · openclaw/openclaw@48334d8
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status"; |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import { createMatrixPairingText, createMatrixProbeAccount } from "./channel-account-paths.js"; |
3 | 4 | |
@@ -68,7 +69,7 @@ describe("matrix account path propagation", () => {
|
68 | 69 | |
69 | 70 | expect(sendMessageMatrixMock).toHaveBeenCalledWith( |
70 | 71 | "user:@user:example.org", |
71 | | -expect.any(String), |
| 72 | +PAIRING_APPROVED_MESSAGE, |
72 | 73 | { cfg: {}, accountId: "poe" }, |
73 | 74 | ); |
74 | 75 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。