@@ -274,7 +274,15 @@ describe('content integrity', () => {
274274
275275 it ( 'gemini GEMINI.md contains ONE managed section with verify and onboard content' , ( ) => {
276276 const tmpDir = freshTmpDir ( ) ;
277- const result = runCli ( [ 'agent' , 'install' , '--target=gemini' , '--dir' , tmpDir , '--output' , 'json' ] ) ;
277+ const result = runCli ( [
278+ 'agent' ,
279+ 'install' ,
280+ '--target=gemini' ,
281+ '--dir' ,
282+ tmpDir ,
283+ '--output' ,
284+ 'json' ,
285+ ] ) ;
278286
279287 // Exit code must be 0
280288 expect ( result . status , 'gemini install: exit code' ) . toBe ( 0 ) ;
@@ -330,7 +338,15 @@ describe('content integrity', () => {
330338 writeFileSync ( filePath , userPrefix + userSuffix , 'utf8' ) ;
331339
332340 // First install: merges managed section into the file
333- const first = runCli ( [ 'agent' , 'install' , '--target=gemini' , '--dir' , tmpDir , '--output' , 'json' ] ) ;
341+ const first = runCli ( [
342+ 'agent' ,
343+ 'install' ,
344+ '--target=gemini' ,
345+ '--dir' ,
346+ tmpDir ,
347+ '--output' ,
348+ 'json' ,
349+ ] ) ;
334350 expect ( first . status , 'first install: exit code' ) . toBe ( 0 ) ;
335351
336352 const afterFirst = readFileSync ( filePath , 'utf8' ) ;
@@ -346,7 +362,15 @@ describe('content integrity', () => {
346362 ) ;
347363
348364 // Second install (re-run): must be idempotent and preserve user content
349- const second = runCli ( [ 'agent' , 'install' , '--target=gemini' , '--dir' , tmpDir , '--output' , 'json' ] ) ;
365+ const second = runCli ( [
366+ 'agent' ,
367+ 'install' ,
368+ '--target=gemini' ,
369+ '--dir' ,
370+ tmpDir ,
371+ '--output' ,
372+ 'json' ,
373+ ] ) ;
350374 expect ( second . status , 'second install: exit code' ) . toBe ( 0 ) ;
351375
352376 const afterSecond = readFileSync ( filePath , 'utf8' ) ;
@@ -357,8 +381,10 @@ describe('content integrity', () => {
357381
358382 // Exactly one pair of sentinels after re-run
359383 const escRe2 = ( s : string ) => s . replace ( / [ . * + ? ^ $ { } ( ) | [ \] \\ ] / g, '\\$&' ) ;
360- const beginCount2 = ( afterSecond . match ( new RegExp ( escRe2 ( MANAGED_SECTION_BEGIN ) , 'g' ) ) ?? [ ] ) . length ;
361- const endCount2 = ( afterSecond . match ( new RegExp ( escRe2 ( MANAGED_SECTION_END ) , 'g' ) ) ?? [ ] ) . length ;
384+ const beginCount2 = ( afterSecond . match ( new RegExp ( escRe2 ( MANAGED_SECTION_BEGIN ) , 'g' ) ) ?? [ ] )
385+ . length ;
386+ const endCount2 = ( afterSecond . match ( new RegExp ( escRe2 ( MANAGED_SECTION_END ) , 'g' ) ) ?? [ ] )
387+ . length ;
362388 expect ( beginCount2 , 'exactly one BEGIN sentinel after re-run' ) . toBe ( 1 ) ;
363389 expect ( endCount2 , 'exactly one END sentinel after re-run' ) . toBe ( 1 ) ;
364390
0 commit comments