test: emit fs bridge script output · openclaw/openclaw@ed1d2db
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,11 +13,11 @@ import {
|
13 | 13 | } from "./fs-bridge.test-helpers.js"; |
14 | 14 | |
15 | 15 | function expectNoScriptsContaining(scripts: string[], needle: string) { |
16 | | -expect(scripts.some((script) => script.includes(needle))).toBe(false); |
| 16 | +expect(scripts.join("\n")).not.toContain(needle); |
17 | 17 | } |
18 | 18 | |
19 | 19 | function expectSomeScriptContaining(scripts: string[], needle: string) { |
20 | | -expect(scripts.some((script) => script.includes(needle))).toBe(true); |
| 20 | +expect(scripts.join("\n")).toContain(needle); |
21 | 21 | } |
22 | 22 | |
23 | 23 | function countMatching<T>(items: readonly T[], predicate: (item: T) => boolean): number { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。