@@ -204,10 +204,13 @@ describe("DXT CLI", () => {
204204 } ,
205205 } ) ,
206206 ) ;
207-
207+
208208 // Create an executable script
209209 const executableScript = join ( tempExecDir , "run-script.sh" ) ;
210- fs . writeFileSync ( executableScript , "#!/bin/bash\necho 'Hello from executable'" ) ;
210+ fs . writeFileSync (
211+ executableScript ,
212+ "#!/bin/bash\necho 'Hello from executable'" ,
213+ ) ;
211214 fs . chmodSync ( executableScript , 0o755 ) ; // Make it executable
212215
213216 // Create a regular file for comparison
@@ -221,25 +224,33 @@ describe("DXT CLI", () => {
221224 } ) ;
222225
223226 // Unpack the extension
224- execSync ( `node ${ cliPath } unpack ${ execPackedFilePath } ${ execUnpackedDir } ` , {
225- encoding : "utf-8" ,
226- } ) ;
227+ execSync (
228+ `node ${ cliPath } unpack ${ execPackedFilePath } ${ execUnpackedDir } ` ,
229+ {
230+ encoding : "utf-8" ,
231+ } ,
232+ ) ;
227233
228234 // Check that the executable file preserved its permissions
229235 const originalStats = fs . statSync ( executableScript ) ;
230- const unpackedStats = fs . statSync ( join ( execUnpackedDir , "run-script.sh" ) ) ;
231-
236+ const unpackedStats = fs . statSync (
237+ join ( execUnpackedDir , "run-script.sh" ) ,
238+ ) ;
239+
232240 // Check that executable permissions are preserved (0o755)
233241 expect ( unpackedStats . mode & 0o777 ) . toBe ( 0o755 ) ;
234242 expect ( originalStats . mode & 0o777 ) . toBe ( unpackedStats . mode & 0o777 ) ;
235243
236244 // Check that regular file permissions are preserved (0o644)
237245 const originalRegularStats = fs . statSync ( regularFile ) ;
238- const unpackedRegularStats = fs . statSync ( join ( execUnpackedDir , "regular-file.txt" ) ) ;
239-
240- expect ( unpackedRegularStats . mode & 0o777 ) . toBe ( 0o644 ) ;
241- expect ( originalRegularStats . mode & 0o777 ) . toBe ( unpackedRegularStats . mode & 0o777 ) ;
246+ const unpackedRegularStats = fs . statSync (
247+ join ( execUnpackedDir , "regular-file.txt" ) ,
248+ ) ;
242249
250+ expect ( unpackedRegularStats . mode & 0o777 ) . toBe ( 0o644 ) ;
251+ expect ( originalRegularStats . mode & 0o777 ) . toBe (
252+ unpackedRegularStats . mode & 0o777 ,
253+ ) ;
243254 } finally {
244255 // Clean up
245256 fs . rmSync ( tempExecDir , { recursive : true , force : true } ) ;
0 commit comments