test: guard mantle fetch assertion

This commit is contained in:
Peter Steinberger
2026-05-11 19:51:29 +01:00
parent 60bda15223
commit b1a98701cf

View File

@@ -544,7 +544,9 @@ describe("bedrock mantle discovery", () => {
expect(provider?.baseUrl).toBe("https://bedrock-mantle.us-east-1.api.aws/v1");
expect(mockFetch.mock.calls[0]?.[0]).toBe("https://bedrock-mantle.us-east-1.api.aws/v1/models");
expect(mockFetch.mock.calls[0]?.[1]).toBeDefined();
if (mockFetch.mock.calls[0]?.[1] === undefined) {
throw new Error("expected Mantle models fetch init");
}
});
// ---------------------------------------------------------------------------