mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 09:38:39 +00:00
test(doctor): tighten provider call typing assertions
This commit is contained in:
@@ -256,9 +256,8 @@ describe("noteMemorySearchHealth", () => {
|
|||||||
await noteMemorySearchHealth(cfg);
|
await noteMemorySearchHealth(cfg);
|
||||||
|
|
||||||
expect(note).toHaveBeenCalledTimes(1);
|
expect(note).toHaveBeenCalledTimes(1);
|
||||||
const providersChecked = resolveApiKeyForProvider.mock.calls.map(
|
const providerCalls = resolveApiKeyForProvider.mock.calls as Array<[{ provider: string }]>;
|
||||||
([arg]: [{ provider: string }]) => arg.provider,
|
const providersChecked = providerCalls.map(([arg]) => arg.provider);
|
||||||
);
|
|
||||||
expect(providersChecked).toEqual(["openai", "google", "voyage", "mistral"]);
|
expect(providersChecked).toEqual(["openai", "google", "voyage", "mistral"]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user