fix: 把误删的 test 加回 1.1.70

恢复 bash/identity/override 三份测试,补上 boot-locate,并按当前 ChatML 布局改断言。版本仍是 1.1.70。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-11 18:05:45 +08:00
1 parent 199329bd5a
commit a5d7f29060
3 files changed
+38 -7

No files matched your search

+15
View File
@@ -7,6 +7,7 @@ import {
ALL_PATCHES,
commitOverrideOnApply,
defaultOverrideText,
groupPatchesForDisplay,
looksLikePluginDefault,
seedPromptInjectAtBoot,
} from "../lib/core.js";
@@ -100,3 +101,17 @@ test("patch 87 normalizes hang needle to LF", () => {
assert.match(joined, /replace\(\/\\r\\n\/g/);
assert.match(joined, /\[dsh-purge-87\]/);
});
test("dead hang and official phase-1 rows are not separate patches", () => {
assert.equal(ALL_PATCHES.some((item) => item.id === 81), false);
assert.equal(ALL_PATCHES.some((item) => item.id === 89), false);
});
test("display grouping collapses hang 87+88 into one row", () => {
const rows = groupPatchesForDisplay(ALL_PATCHES, { 87: "applied", 88: "applied" });
const hang = rows.find((row) => row.id === 87);
assert.ok(hang);
assert.deepEqual(hang.ids, [87, 88]);
assert.equal(hang.status, "applied");
assert.equal(rows.some((row) => row.id === 88), false);
});