Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.
TypeScript clipboardclipboard-managerdesktop-appdrag-and-dropelectronopen-sourceproductivityproductivity-toolwindows
chore: sync test fixtures and doc comments to v0.3.1
Deepender25605bf3d7fe89
diff --git a/src/i18n/index.ts b/src/i18n/index.tsindex a845039..d983d51 100644--- a/src/i18n/index.ts+++ b/src/i18n/index.ts@@ -63,7 +63,7 @@ function getNestedProp(obj: any, path: string): string | undefined {/*** Main translation function.* E.g., t('header.searchPlaceholder')- * E.g., t('behaviour.updateAvailableTitle', { version: '0.2.2' })+ * E.g., t('behaviour.updateAvailableTitle', { version: '0.3.1' })*/export function t(path: string, params?: Record<string, string | number>): string {const settingsLang = useStore.getState().settings.languagediff --git a/tests/storeBuildDetect.test.ts b/tests/storeBuildDetect.test.tsindex 6312c20..0b94631 100644--- a/tests/storeBuildDetect.test.ts+++ b/tests/storeBuildDetect.test.ts@@ -114,7 +114,7 @@ describe('isStoreBuild — every detection signal', () => {})it('is false when packaged package.json has no buildTarget', () => {- writePackagedJson({ name: 'edge-drop', version: '0.2.7' })+ writePackagedJson({ name: 'edge-drop', version: '0.3.1' })expect(isStoreBuild()).toBe(false)})diff --git a/tests/storeLoginApply.test.ts b/tests/storeLoginApply.test.tsindex ee369a4..2b954eb 100644--- a/tests/storeLoginApply.test.ts+++ b/tests/storeLoginApply.test.ts@@ -12,7 +12,7 @@ const child = vi.hoisted(() => ({const mocks = vi.hoisted(() => ({isPackaged: true,- exePath: 'C:\\Program Files\\WindowsApps\\Deepender.EdgeDrop_0.3.0.0_x64__aqnvcnjbf5ns8\\app\\Edge-Drop.exe',+ exePath: 'C:\\Program Files\\WindowsApps\\Deepender.EdgeDrop_0.3.1.0_x64__aqnvcnjbf5ns8\\app\\Edge-Drop.exe',loadSettings: vi.fn(() => ({ launchAtLogin: false })),saveSettings: vi.fn((patch: Record<string, unknown>) => ({ launchAtLogin: false, ...patch }))}))diff --git a/tests/storeLoginItem.test.ts b/tests/storeLoginItem.test.tsindex c376305..d5658d3 100644--- a/tests/storeLoginItem.test.ts+++ b/tests/storeLoginItem.test.ts@@ -21,7 +21,7 @@ vi.mock('electron', () => ({getPath: (name: string) => (name === 'exe' ? mocks.exePath : 'C:\\mock\\userData'),setLoginItemSettings: (...args: unknown[]) => mocks.setLoginItemSettings(...args),getLoginItemSettings: (...args: unknown[]) => mocks.getLoginItemSettings(...args),- getVersion: () => '0.2.7',+ getVersion: () => '0.3.1',getAppPath: () => 'C:\\mock\\app',disableHardwareAcceleration: vi.fn(),enableSandbox: vi.fn(),diff --git a/tests/storeUpdater.test.ts b/tests/storeUpdater.test.tsindex adbe302..e88e33f 100644--- a/tests/storeUpdater.test.ts+++ b/tests/storeUpdater.test.ts@@ -1,7 +1,7 @@import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'const mocks = vi.hoisted(() => ({- version: '0.2.7',+ version: '0.3.1',netRequest: vi.fn(),updateAvailable: vi.fn(),getSettings: vi.fn(() => ({ autoUpdates: true }))@@ -83,7 +83,7 @@ describe('auto-updater isolation', () => {it('checkForUpdatesManual reports up-to-date at the running version and never touches the network', async () => {const result = await checkForUpdatesManual()- expect(result).toEqual({ status: 'up-to-date', version: '0.2.7' })+ expect(result).toEqual({ status: 'up-to-date', version: '0.3.1' })expect(mocks.netRequest).not.toHaveBeenCalled()expect(mocks.updateAvailable).not.toHaveBeenCalled()})@@ -99,22 +99,22 @@ describe('auto-updater isolation', () => {describe('GitHub exe build', () => {it('checkForUpdatesManual reports available when GitHub latest is newer', async () => {- mockGithubRelease('v0.2.8')+ mockGithubRelease('v0.3.2')const result = await checkForUpdatesManual()- expect(result).toEqual({ status: 'available', version: '0.2.8' })+ expect(result).toEqual({ status: 'available', version: '0.3.2' })expect(mocks.netRequest).toHaveBeenCalled()- expect(mocks.updateAvailable).toHaveBeenCalledWith({ version: '0.2.8' })+ expect(mocks.updateAvailable).toHaveBeenCalledWith({ version: '0.3.2' })})it('checkForUpdatesManual reports up-to-date when GitHub latest matches', async () => {- mockGithubRelease('v0.2.7')+ mockGithubRelease('v0.3.1')const result = await checkForUpdatesManual()- expect(result).toEqual({ status: 'up-to-date', version: '0.2.7' })+ expect(result).toEqual({ status: 'up-to-date', version: '0.3.1' })expect(mocks.updateAvailable).not.toHaveBeenCalled()})it('checkForUpdatesManual hits the Edge-Drop releases endpoint', async () => {- mockGithubRelease('v0.2.7')+ mockGithubRelease('v0.3.1')await checkForUpdatesManual()expect(mocks.netRequest).toHaveBeenCalledWith(expect.objectContaining({method: 'GET',