fix: clean agent lint failures · openclaw/openclaw@25ba8e3
shakkernerd
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -70,7 +70,7 @@ describe("plugin text transforms", () => {
|
70 | 70 | ).toBe("counter receipt on the right shelf"); |
71 | 71 | }); |
72 | 72 | |
73 | | -it("rewrites system prompt and message text content before transport", () => { |
| 73 | +it("rewrites system prompt and message text content before transport", async () => { |
74 | 74 | let capturedContext: Context | undefined; |
75 | 75 | const wrapped = wrapStreamFnTextTransforms({ |
76 | 76 | streamFn: (_model, context) => { |
@@ -87,21 +87,23 @@ describe("plugin text transforms", () => {
|
87 | 87 | { from: /red basket/g, to: "blue basket" }, |
88 | 88 | ], |
89 | 89 | }); |
90 | | -wrapped( |
91 | | -model, |
92 | | -{ |
93 | | -systemPrompt: "Use orchid mailbox inside north tower", |
94 | | -messages: [ |
95 | | -{ |
96 | | -role: "user", |
97 | | -content: [ |
98 | | -{ type: "text", text: "Please use the red basket" }, |
99 | | -{ type: "image", url: "data:image/png;base64,abc" }, |
100 | | -], |
101 | | -}, |
102 | | -], |
103 | | -} as Context, |
104 | | -undefined, |
| 90 | +await Promise.resolve( |
| 91 | +wrapped( |
| 92 | +model, |
| 93 | +{ |
| 94 | +systemPrompt: "Use orchid mailbox inside north tower", |
| 95 | +messages: [ |
| 96 | +{ |
| 97 | +role: "user", |
| 98 | +content: [ |
| 99 | +{ type: "text", text: "Please use the red basket" }, |
| 100 | +{ type: "image", url: "data:image/png;base64,abc" }, |
| 101 | +], |
| 102 | +}, |
| 103 | +], |
| 104 | +} as Context, |
| 105 | +undefined, |
| 106 | +), |
105 | 107 | ); |
106 | 108 | |
107 | 109 | const context = capturedContext as unknown as { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。