From 5f9cf61da686bb4a1e8d76d96cf3b4bf4af9b8ff Mon Sep 17 00:00:00 2001 From: Sucukdeluxe <259325684+Sucukdeluxe@users.noreply.github.com> Date: Wed, 26 Aug 2026 19:24:43 +0200 Subject: [PATCH] test: normalize startup source newlines Keep the hidden automation restart harness stable across Windows checkouts with CRLF line endings. --- tests/startup-renderer.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/startup-renderer.test.js b/tests/startup-renderer.test.js index ba065af..18b5b5b 100644 --- a/tests/startup-renderer.test.js +++ b/tests/startup-renderer.test.js @@ -3540,7 +3540,7 @@ app.whenReady().then(async () => { test('persisted automation pause survives runtime restart and resumes one reconciliation without starting previews', { skip: process.platform !== 'win32' }, () => { const projectRoot = path.join(__dirname, '..'); - const mainSource = fs.readFileSync(path.join(projectRoot, 'main.js'), 'utf8'); + const mainSource = fs.readFileSync(path.join(projectRoot, 'main.js'), 'utf8').replace(/\r\n?/gu, '\n'); const startUploadStart = mainSource.indexOf("ipcMain.handle('start-upload'"); const startUploadEnd = mainSource.indexOf("\nipcMain.handle('cancel-upload'", startUploadStart); const addJobsStart = mainSource.indexOf("ipcMain.handle('add-jobs-to-batch'");