mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: dedupe huggingface provider mock read
This commit is contained in:
@@ -40,7 +40,7 @@ function registerProviderWithPluginConfig(pluginConfig: Record<string, unknown>)
|
||||
);
|
||||
|
||||
expect(registerProviderMock).toHaveBeenCalledTimes(1);
|
||||
const firstCall = registerProviderMock.mock.calls.at(0);
|
||||
const firstCall = registerProviderMock.mock.calls[0];
|
||||
if (!firstCall) {
|
||||
throw new Error("expected huggingface provider registration");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user