mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
test: guard plugin registry mock calls
This commit is contained in:
@@ -32,7 +32,7 @@ function expectConfiguredChannelPluginIdsParams(expected: {
|
||||
workspaceDir?: string;
|
||||
}) {
|
||||
expect(mocks.resolveConfiguredChannelPluginIds).toHaveBeenCalledTimes(1);
|
||||
const params = mocks.resolveConfiguredChannelPluginIds.mock.calls[0]?.[0] as
|
||||
const params = mocks.resolveConfiguredChannelPluginIds.mock.calls.at(0)?.[0] as
|
||||
| { config?: unknown; env?: NodeJS.ProcessEnv; workspaceDir?: string }
|
||||
| undefined;
|
||||
expect(params?.config).toBe(expected.config);
|
||||
|
||||
Reference in New Issue
Block a user