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
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

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",