diff --git a/test/metadata.test.js b/test/metadata.test.js index 61b8668..b14b396 100644 --- a/test/metadata.test.js +++ b/test/metadata.test.js @@ -121,7 +121,7 @@ test('active doctor command remains single-source and runs the repair-first path const cliSource = fs.readFileSync(cliPath, 'utf8'); const doctorDefs = cliSource.match(/function doctor\(rawArgs\)/g) || []; assert.equal(doctorDefs.length, 1, 'doctor() must not be duplicated'); - assert.match(cliSource, /printOperations\('Doctor\/fix', fixPayload, singleRepoOptions\.dryRun\);/); + assert.match(cliSource, /printOperations\('Doctor\/fix', fixPayload,\s*[^)]+\.dryRun\);/); }); test('worktree-change detection uses normal untracked-file mode', () => {