test: normalize startup source newlines
CI / verify (push) Canceled after 0s

Keep the hidden automation restart harness stable across Windows checkouts with CRLF line endings.
This commit is contained in:
Sucukdeluxe
2026-08-26 19:24:43 +02:00
parent 213d049588
commit 5f9cf61da6
+1 -1
View File
@@ -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' }, () => { test('persisted automation pause survives runtime restart and resumes one reconciliation without starting previews', { skip: process.platform !== 'win32' }, () => {
const projectRoot = path.join(__dirname, '..'); 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 startUploadStart = mainSource.indexOf("ipcMain.handle('start-upload'");
const startUploadEnd = mainSource.indexOf("\nipcMain.handle('cancel-upload'", startUploadStart); const startUploadEnd = mainSource.indexOf("\nipcMain.handle('cancel-upload'", startUploadStart);
const addJobsStart = mainSource.indexOf("ipcMain.handle('add-jobs-to-batch'"); const addJobsStart = mainSource.indexOf("ipcMain.handle('add-jobs-to-batch'");