test(desktop): match multiline spawn(ps, fullArgs) via regex like sibling sites

The bootstrap-runner PowerShell spawn is formatted multiline (spawn(\n  ps,\n  fullArgs,...), so the literal substring 'spawn(ps, fullArgs' never matched and the assertion was failing on main independent of #54635. Convert it to a whitespace-tolerant regex like every other call-site assertion in this file.
This commit is contained in:
teknium1 2026-06-28 22:46:57 -07:00 committed by Teknium
parent aa2ae36c3f
commit f860492842

View file

@ -89,5 +89,5 @@ test('bootstrap PowerShell runner hides Windows console children', () => {
const source = readElectronFile('bootstrap-runner.cjs')
assert.match(source, /function hiddenWindowsChildOptions\(options = \{\}\)/)
requireHiddenChildOptions(source, 'spawn(ps, fullArgs')
requireHiddenChildOptions(source, /spawn\(\s*ps,\s*fullArgs/)
})