mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 14:00:42 +00:00
test: assert npm spec warning suppression
This commit is contained in:
@@ -1072,7 +1072,9 @@ describe("installPluginFromNpmSpec", () => {
|
||||
return;
|
||||
}
|
||||
expect(result.pluginId).toBe(pluginId);
|
||||
expect(warnings.some((warning) => warning.includes("installation blocked"))).toBe(false);
|
||||
expect(warnings).not.toEqual(
|
||||
expect.arrayContaining([expect.stringContaining("installation blocked")]),
|
||||
);
|
||||
expectNpmInstallIntoRoot({
|
||||
calls: runCommandWithTimeoutMock.mock.calls,
|
||||
npmRoot,
|
||||
|
||||
Reference in New Issue
Block a user