@@ -42,10 +42,10 @@ describe('bootstrap session fetch', () => {
4242 expect ( planFetch ( repoRoot ) ) . toEqual ( { action : 'no-fetcher' } )
4343 } )
4444
45- it ( 'plans the local bootstrap fetcher when the payload is absent ' , ( ) => {
45+ it ( 'plans the local bootstrap current-bundle check ' , ( ) => {
4646 const fleet = writeFixture ( 'scripts/repo/bootstrap/fleet.mjs' , '' )
4747
48- expect ( planFetch ( repoRoot ) ) . toEqual ( { action : 'fetch ' , fleet } )
48+ expect ( planFetch ( repoRoot ) ) . toEqual ( { action : 'ensure ' , fleet } )
4949 } )
5050
5151 it ( 'warns without blocking when the fetcher is missing' , ( ) => {
@@ -62,7 +62,7 @@ describe('bootstrap session fetch', () => {
6262 'scripts/repo/bootstrap/fleet.mjs' ,
6363 [
6464 "import { mkdirSync, writeFileSync } from 'node:fs'" ,
65- "if (process.argv[2] !== '--if -current') process.exit(12)" ,
65+ "if (process.argv[2] !== '--ensure -current') process.exit(12)" ,
6666 "mkdirSync('.claude/hooks/fleet', { recursive: true })" ,
6767 "writeFileSync('.claude/hooks/fleet/index.cjs', '')" ,
6868 "process.stdout.write('fixture progress')" ,
@@ -73,7 +73,10 @@ describe('bootstrap session fetch', () => {
7373 const stdout = vi . spyOn ( process . stdout , 'write' ) . mockReturnValue ( true )
7474
7575 expect ( ensurePayload ( repoRoot ) ) . toBe ( 0 )
76- expect ( planFetch ( repoRoot ) ) . toEqual ( { action : 'present' } )
76+ expect ( planFetch ( repoRoot ) ) . toEqual ( {
77+ action : 'ensure' ,
78+ fleet : path . join ( repoRoot , 'scripts' , 'repo' , 'bootstrap' , 'fleet.mjs' ) ,
79+ } )
7780 expect ( stderr ) . not . toHaveBeenCalled ( )
7881 expect ( stdout ) . not . toHaveBeenCalled ( )
7982 } )
0 commit comments