mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 10:39:32 +01:00
fix(agent): address inspection and staging review feedback
This commit is contained in:
1 parent
a24b0ec7bb
commit
4c2f050a96
24 files changed
+517
-116
No files matched your search
@@ -326,3 +326,13 @@ describe('sendInput line breaks', () => {
|
||||
expect(answer.ran[1]).toMatch(/ send-keys -t "codeman-abc12345" Enter$/);
|
||||
});
|
||||
});
|
||||
|
||||
it('terminates literal operands in both sendInputToPane branches', async () => {
|
||||
const { readFile } = await import('node:fs/promises');
|
||||
const src = await readFile(new URL('../src/tmux-manager.ts', import.meta.url), 'utf8');
|
||||
const start = src.indexOf(' sendInputToPane(');
|
||||
const body = src.slice(start, src.indexOf('\n }\n', start));
|
||||
const literal = body.match(/send-keys[^`\n]*-l[^`\n]*/g) ?? [];
|
||||
expect(literal).toHaveLength(2);
|
||||
for (const command of literal) expect(command).toContain(' -l -- ');
|
||||
});
|
||||
Reference in new issue
Block a user