test: partition bundled entry prefixes · openclaw/openclaw@d20ba30
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,11 +8,11 @@ import {
|
8 | 8 | } from "../../scripts/lib/bundled-plugin-build-entries.mjs"; |
9 | 9 | |
10 | 10 | function expectNoPrefixMatches(values: string[], prefix: string) { |
11 | | -expect(values.some((value) => value.startsWith(prefix))).toBe(false); |
| 11 | +expect(values.filter((value) => value.startsWith(prefix))).toEqual([]); |
12 | 12 | } |
13 | 13 | |
14 | 14 | function expectSomePrefixMatch(values: string[], prefix: string) { |
15 | | -expect(values.some((value) => value.startsWith(prefix))).toBe(true); |
| 15 | +expect(values.filter((value) => value.startsWith(prefix))).not.toEqual([]); |
16 | 16 | } |
17 | 17 | |
18 | 18 | function pickEntries(entries: Record<string, string>, keys: readonly string[]) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。