test: align hook install unsafe flag assertion

This commit is contained in:
Peter Steinberger
2026-04-04 05:27:47 +01:00
parent e95b723b82
commit c17985aa9f

View File

@@ -336,9 +336,8 @@ describe("installHooksFromNpmSpec", () => {
params: Parameters<typeof hookInstallRuntime.installFromValidatedNpmSpecArchive>[0],
) => {
expect(
"dangerouslyForceUnsafeInstall" in
(params.archiveInstallParams as Record<string, unknown>),
).toBe(false);
(params.archiveInstallParams as Record<string, unknown>).dangerouslyForceUnsafeInstall,
).toBeUndefined();
return {
ok: true,
hookPackId: "test-hooks",