mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-30 16:30:22 +08:00
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:
1 parent
199329bd5a
commit
a5d7f29060
3 files changed
+38
-7
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { findDesktopAppExecutable, listDesktopPackageRoots } from "../lib/desktop.js";
|
||||
import { restoreMissingOriginalsAllHosts } from "../lib/core.js";
|
||||
|
||||
test("boot desktop locate stays cheap without PowerShell discovery", () => {
|
||||
const t0 = Date.now();
|
||||
const roots = listDesktopPackageRoots({ discover: false });
|
||||
const exe = findDesktopAppExecutable({ discover: false });
|
||||
const restored = restoreMissingOriginalsAllHosts({ boot: true });
|
||||
const ms = Date.now() - t0;
|
||||
assert.ok(Array.isArray(roots));
|
||||
assert.equal(typeof exe, "string");
|
||||
assert.ok(Array.isArray(restored));
|
||||
assert.ok(ms < 1500, `cheap boot locate took ${ms}ms`);
|
||||
});
|
||||
Reference in new issue
Block a user