From 42551fde155174c7cd117f9e1e3ccf31eb8cf82a Mon Sep 17 00:00:00 2001 From: OrcaWin <293788423+OrcaWin@users.noreply.github.com> Date: Thu, 6 Aug 2026 23:31:11 -0700 Subject: [PATCH] test: keep clipboard IPC fixture within line limit --- src/main/window/clipboard-ipc-handlers.test.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/window/clipboard-ipc-handlers.test.ts b/src/main/window/clipboard-ipc-handlers.test.ts index e9d8e9470bb..99fd03548c1 100644 --- a/src/main/window/clipboard-ipc-handlers.test.ts +++ b/src/main/window/clipboard-ipc-handlers.test.ts @@ -202,16 +202,13 @@ describe('registerClipboardHandlers', () => { childStdinEndMock.mockClear() resolveAuthorizedPathMock.mockReset() resolveAuthorizedPathMock.mockImplementation(async (path: string) => path) - fsAccessMock.mockReset() - fsAccessMock.mockResolvedValue(undefined) - fsLstatMock.mockReset() - fsLstatMock.mockResolvedValue({ + fsAccessMock.mockReset().mockResolvedValue(undefined) + fsLstatMock.mockReset().mockResolvedValue({ uid: typeof process.getuid === 'function' ? process.getuid() : 0, isDirectory: () => true, isSymbolicLink: () => false }) - fsMkdirMock.mockReset() - fsMkdirMock.mockResolvedValue(undefined) + fsMkdirMock.mockReset().mockResolvedValue(undefined) fsOpendirMock.mockReset() // Why: handler registration kicks off the expired-staging sweep; an empty temp root keeps it inert. fsOpendirMock.mockImplementation(async () => ({