[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-09-08 17:43:47 +00:00 committed by GitHub
parent 6e760da93b
commit df4e299545
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -446,13 +446,11 @@ describe("infisical client", () => {
const loginResponse = () => jsonResponse({ accessToken: "token-1" });
it("asks the list endpoint to expand secret references", async () => {
mockFetch
.mockResolvedValueOnce(loginResponse())
.mockResolvedValueOnce(
jsonResponse({
secrets: [{ secretKey: "DB_URL", secretValue: "postgres://real" }],
}),
);
mockFetch.mockResolvedValueOnce(loginResponse()).mockResolvedValueOnce(
jsonResponse({
secrets: [{ secretKey: "DB_URL", secretValue: "postgres://real" }],
}),
);
const result = await infisicalClient.getSecrets(config, ["DB_URL"]);
@ -478,9 +476,9 @@ describe("infisical client", () => {
it("propagates authentication failures with the status code", async () => {
mockFetch.mockResolvedValueOnce(jsonResponse({}, false, 401));
await expect(infisicalClient.getSecrets(config, ["DB_URL"])).rejects.toThrow(
"authentication failed (status 401)",
);
await expect(
infisicalClient.getSecrets(config, ["DB_URL"]),
).rejects.toThrow("authentication failed (status 401)");
});
});