From d90512a433ff6af6d3728bf5723e2546593e3c48 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 11:39:51 +0000 Subject: [PATCH] test: add tests for updater.ts Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com> --- src/updater.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/updater.test.ts b/src/updater.test.ts index 9f278c7..2b56531 100644 --- a/src/updater.test.ts +++ b/src/updater.test.ts @@ -1,6 +1,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest'; import { checkForUpdate } from './updater'; import * as storage from './storage'; +import type { Update } from '@tauri-apps/plugin-updater'; vi.mock('./storage', () => ({ isTauri: vi.fn(), @@ -62,7 +63,7 @@ describe('checkForUpdate', () => { version: '1.1.0', currentVersion: '1.0.0', downloadAndInstall: vi.fn().mockResolvedValue(undefined), - }; + } as unknown as Update; vi.mocked(check).mockResolvedValue(mockUpdate); const result = await checkForUpdate();