test: reuse tlon text sender · openclaw/openclaw@7ce0532
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -94,7 +94,7 @@ describe("tlon channel message adapter", () => {
|
94 | 94 | |
95 | 95 | const proveReplyThread = async () => { |
96 | 96 | mocks.sendText.mockClear(); |
97 | | -const result = await adapter.send!.text!({ |
| 97 | +const result = await sendText({ |
98 | 98 | cfg, |
99 | 99 | to: "chat/~nec/general", |
100 | 100 | text: "threaded", |
@@ -121,7 +121,7 @@ describe("tlon channel message adapter", () => {
|
121 | 121 | replyTo: proveReplyThread, |
122 | 122 | thread: proveReplyThread, |
123 | 123 | messageSendingHooks: () => { |
124 | | -expect(adapter.send!.text).toBeTypeOf("function"); |
| 124 | +expect(sendText).toBeTypeOf("function"); |
125 | 125 | }, |
126 | 126 | }, |
127 | 127 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。