test: avoid proxy-wide root alias matcher · openclaw/openclaw@04a9a61
shakkernerd
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -543,13 +543,9 @@ describe("plugin-sdk root alias", () => {
|
543 | 543 | ); |
544 | 544 | const lazyModule = loadRootAliasWithStubs({ monolithicExports }); |
545 | 545 | |
546 | | -expect(rootSdk).toEqual( |
547 | | -expect.objectContaining({ |
548 | | -emptyPluginConfigSchema: expect.any(Function), |
549 | | -resolveControlCommandGate: expect.any(Function), |
550 | | -onDiagnosticEvent: expect.any(Function), |
551 | | -}), |
552 | | -); |
| 546 | +expect(rootSdk.emptyPluginConfigSchema).toEqual(expect.any(Function)); |
| 547 | +expect(rootSdk.resolveControlCommandGate).toEqual(expect.any(Function)); |
| 548 | +expect(rootSdk.onDiagnosticEvent).toEqual(expect.any(Function)); |
553 | 549 | |
554 | 550 | for (const name of legacyRootExportNames) { |
555 | 551 | expect(lazyModule.moduleExports[name]).toBe(monolithicExports[name]); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。