






























@@ -485,7 +485,7 @@ describe("resolvePluginTools optional tools", () => {
485485env: {},
486486});
487487488-expect(tools).toEqual([]);
488+expect(tools).toStrictEqual([]);
489489expect(factory).not.toHaveBeenCalled();
490490expect(loadOpenClawPluginsMock).not.toHaveBeenCalled();
491491});
@@ -675,7 +675,7 @@ describe("resolvePluginTools optional tools", () => {
675675}),
676676);
677677678-expect(tools).toEqual([]);
678+expect(tools).toStrictEqual([]);
679679expectSingleDiagnosticMessage(
680680registry.diagnostics,
681681"plugin tool registry did not include selected plugin tools after cold load (optional-demo)",
@@ -745,7 +745,7 @@ describe("resolvePluginTools optional tools", () => {
745745freshRegistry.diagnostics,
746746"plugin tool registry did not include selected plugin tools after cold load (multi)",
747747);
748-expect(staleRegistry.diagnostics).toEqual([]);
748+expect(staleRegistry.diagnostics).toStrictEqual([]);
749749});
750750751751it("does not reuse a pinned gateway registry for manifest-unavailable tools", () => {
@@ -780,7 +780,7 @@ describe("resolvePluginTools optional tools", () => {
780780allowGatewaySubagentBinding: true,
781781});
782782783-expect(tools).toEqual([]);
783+expect(tools).toStrictEqual([]);
784784expect(factory).not.toHaveBeenCalled();
785785expect(loadOpenClawPluginsMock).not.toHaveBeenCalled();
786786});
@@ -1419,7 +1419,7 @@ describe("resolvePluginTools optional tools", () => {
14191419);
1420142014211421expectResolvedToolNames(first, ["Message"]);
1422-expect(second).toEqual([]);
1422+expect(second).toStrictEqual([]);
14231423expect(factory).toHaveBeenCalled();
14241424});
14251425@@ -1689,7 +1689,7 @@ describe("resolvePluginTools optional tools", () => {
16891689);
1690169016911691expectResolvedToolNames(hostTools, ["sandbox_sensitive_tool"]);
1692-expect(sandboxedTools).toEqual([]);
1692+expect(sandboxedTools).toStrictEqual([]);
16931693expect(factory).toHaveBeenCalledTimes(2);
16941694});
16951695此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。