()
| 337 | const script = () => buildWindowsUpgradeScript('C:\\Users\\me\\AppData\\Local\\codegraph\\current', 'v1.6.2', 'x64'); |
| 338 | /** The swap function's own statements, comments dropped. */ |
| 339 | const swapCode = () => WINDOWS_SWAP_FUNCTION.split('\n').filter((l) => !l.trim().startsWith('#')).join('\n'); |
| 340 | |
| 341 | it('install.ps1 carries the same swap function, verbatim', () => { |
| 342 | const m = /# >>> Install-CodeGraphFiles[^\n]*\n([\s\S]*?)# <<< Install-CodeGraphFiles/.exec(installPs1()); |