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