test: tighten workspace hook exclusion assertion

This commit is contained in:
Peter Steinberger
2026-05-09 12:07:39 +01:00
parent 620698abdb
commit 3ede7540d4

View File

@@ -132,7 +132,9 @@ describe("hooks workspace", () => {
}
const entries = loadHookEntriesFromDir({ dir: hooksRoot, source: "openclaw-workspace" });
expect(hookNames(entries)).not.toEqual(expect.arrayContaining(["hardlink-hook", "outside"]));
const names = hookNames(entries);
expect(names).not.toContain("hardlink-hook");
expect(names).not.toContain("outside");
});
it("ignores hooks with hardlinked handler aliases", () => {