test: dedupe huggingface provider mock read

This commit is contained in:
Peter Steinberger
2026-05-13 09:15:12 +01:00
parent 4e1f92641c
commit 1dc678393f

View File

@@ -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");
}