From 1675f1f2c25ce164f07c42e829f2c17a723db94f Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 03:02:40 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#107057) Co-authored-by: github-actions[bot] --- apps/desktop/electron/windows-system-ca.test.ts | 1 + apps/desktop/electron/windows-system-ca.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/desktop/electron/windows-system-ca.test.ts b/apps/desktop/electron/windows-system-ca.test.ts index 164d931c8f..fdf6af80a7 100644 --- a/apps/desktop/electron/windows-system-ca.test.ts +++ b/apps/desktop/electron/windows-system-ca.test.ts @@ -10,6 +10,7 @@ afterEach(() => vi.restoreAllMocks()) test('excludes expired roots and deduplicates real certificates with defaults first', () => { vi.spyOn(Date, 'now').mockReturnValue(new Date('2026-01-01T00:00:00Z').getTime()) + const tlsApi = fakeTlsApi( [expiredRoot, bundledRoot, bundledRoot, 'unparseable-default'], [expiredRoot, bundledRoot.replaceAll('\n', '\r\n'), privateRoot, privateRoot, 'unparseable-system'] diff --git a/apps/desktop/electron/windows-system-ca.ts b/apps/desktop/electron/windows-system-ca.ts index a2cecce08b..479c249534 100644 --- a/apps/desktop/electron/windows-system-ca.ts +++ b/apps/desktop/electron/windows-system-ca.ts @@ -45,6 +45,7 @@ function installWindowsSystemCaTrust(tlsApi: NodeTlsCaApi, platform = process.pl if (certificate.validToDate.getTime() <= now || seen.has(certificate.fingerprint256)) { return false } + seen.add(certificate.fingerprint256) } catch { // Leave PEM acceptability to Node if its X.509 parser cannot inspect it.