@@ -151,17 +151,17 @@ describe("copilot_driver.cjs", () => {
151151
152152 it ( "appends one JSONL line through appendSafeOutputLine" , ( ) => {
153153 const writes = [ ] ;
154- const appendStub = ( file , data , encoding ) => writes . push ( { file, data, encoding } ) ;
154+ const appendStub = ( file , data , options ) => writes . push ( { file, data, options } ) ;
155155 appendSafeOutputLine ( appendStub , "/tmp/safeoutputs.jsonl" , '{"type":"report_incomplete"}' ) ;
156- expect ( writes ) . toEqual ( [ { file : "/tmp/safeoutputs.jsonl" , data : '{"type":"report_incomplete"}\n' , encoding : "utf8" } ] ) ;
156+ expect ( writes ) . toEqual ( [ { file : "/tmp/safeoutputs.jsonl" , data : '{"type":"report_incomplete"}\n' , options : { encoding : "utf8" } } ] ) ;
157157 } ) ;
158158
159159 it ( "emitInfrastructureIncomplete writes payload when path is configured" , ( ) => {
160160 const writes = [ ] ;
161161 const logs = [ ] ;
162162 emitInfrastructureIncomplete ( "temporary outage" , {
163163 safeOutputsPath : "/tmp/safeoutputs.jsonl" ,
164- appendFileSync : ( file , data , encoding ) => writes . push ( { file, data, encoding } ) ,
164+ appendFileSync : ( file , data , options ) => writes . push ( { file, data, options } ) ,
165165 logger : message => logs . push ( message ) ,
166166 } ) ;
167167 expect ( writes ) . toHaveLength ( 1 ) ;
0 commit comments