mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-05 22:32:12 +00:00
test: align hook install unsafe flag assertion
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user