test: dedupe oauth tls mock read

This commit is contained in:
Peter Steinberger
2026-05-13 01:31:59 +01:00
parent 963207d265
commit ccd51b40dd

View File

@@ -44,7 +44,7 @@ describe("noteOpenAIOAuthTlsPrerequisites", () => {
}
expect(note).toHaveBeenCalledTimes(1);
const [message, title] = note.mock.calls.at(0) as [string, string];
const [message, title] = note.mock.calls[0] as [string, string];
expect(title).toBe("OAuth TLS prerequisites");
expect(message).toContain("brew postinstall ca-certificates");
});