mirror of https://github.com/openclaw/openclaw.git
test: align hook install unsafe flag assertion
This commit is contained in:
parent
e95b723b82
commit
c17985aa9f
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue