test(integration): remove redundant path normalization

Removes unnecessary .replace(/\\/g, '/') calls in hooks-system.test.ts since
the createHookScript helper now handles path normalization internally.
This commit is contained in:
Abhi
2026-02-06 13:42:09 -05:00
parent e2b96018bd
commit 0fab129453
+4 -4
View File
@@ -46,7 +46,7 @@ describe('Hooks System Integration', () => {
hooks: [ hooks: [
{ {
type: 'command', type: 'command',
command: `node "${scriptPath.replace(/\\/g, '/')}"`, command: `node "${scriptPath}"`,
timeout: 5000, timeout: 5000,
}, },
], ],
@@ -104,7 +104,7 @@ describe('Hooks System Integration', () => {
{ {
type: 'command', type: 'command',
// Exit with code 2 and write reason to stderr // Exit with code 2 and write reason to stderr
command: `node "${scriptPath.replace(/\\/g, '/')}"`, command: `node "${scriptPath}"`,
timeout: 5000, timeout: 5000,
}, },
], ],
@@ -164,7 +164,7 @@ describe('Hooks System Integration', () => {
hooks: [ hooks: [
{ {
type: 'command', type: 'command',
command: `node "${scriptPath.replace(/\\/g, '/')}"`, command: `node "${scriptPath}"`,
timeout: 5000, timeout: 5000,
}, },
], ],
@@ -889,7 +889,7 @@ try {
type: 'command', type: 'command',
// Output plain text then JSON. // Output plain text then JSON.
// This breaks JSON parsing, so it falls back to 'allow' with the whole stdout as systemMessage. // This breaks JSON parsing, so it falls back to 'allow' with the whole stdout as systemMessage.
command: `node "${scriptPath.replace(/\\/g, '/')}"`, command: `node "${scriptPath}"`,
timeout: 5000, timeout: 5000,
}, },
], ],