Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

test(core): put the backslashes back in the unquotePathEntry cases

Erik Zwep6b66000714f1
diff --git a/src/core/exec-path.test.ts b/src/core/exec-path.test.ts
index ae06756e8..88350d58e 100644
--- a/src/core/exec-path.test.ts
+++ b/src/core/exec-path.test.ts
@@ -52,12 +52,12 @@ describe('executableCandidates', () => {
describe('unquotePathEntry', () => {
it('strips the quotes Windows tolerates around a PATH entry', () => {
- expect(unquotePathEntry('"C:\Program Files\GitHub CLI"')).toBe('C:\Program Files\GitHub CLI')
+ expect(unquotePathEntry('"C:\\Program Files\\GitHub CLI"')).toBe('C:\\Program Files\\GitHub CLI')
})
it('leaves an unquoted entry and a lone quote untouched', () => {
expect(unquotePathEntry('/usr/bin')).toBe('/usr/bin')
- expect(unquotePathEntry('"C:\half')).toBe('"C:\half')
+ expect(unquotePathEntry('"C:\\half')).toBe('"C:\\half')
})
})