mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 21:03:05 -07:00
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:
@@ -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,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user