test: dedupe foundry provider mock read

This commit is contained in:
Peter Steinberger
2026-05-13 05:31:55 +01:00
parent e643890176
commit 5592132f56

View File

@@ -53,7 +53,7 @@ function registerProvider() {
}),
);
expect(registerProviderMock).toHaveBeenCalledTimes(1);
const firstCall = registerProviderMock.mock.calls.at(0);
const firstCall = registerProviderMock.mock.calls[0];
if (!firstCall) {
throw new Error("expected Microsoft Foundry provider registration");
}