(run)
| 21 | } |
| 22 | |
| 23 | function withTempProject(run) { |
| 24 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-next-action-')); |
| 25 | try { |
| 26 | return run(dir); |
| 27 | } finally { |
| 28 | fs.rmSync(dir, { recursive: true, force: true }); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | assert.equal(localRepairFor({ command: '/learn --doc-sync' }).args[0].endsWith(path.join('hooks_src', 'doc-sync.js')), true); |
| 33 | assert.equal(localRepairFor({ command: '/merge-review' }), null); |
no test coverage detected