@@ -108,16 +108,16 @@ test("strips leading './' from outdir", async () => {
108108// --- promise settlement ------------------------------------------------------
109109test ( "resolves with 'Done' when execFile succeeds" , async ( ) => {
110110 behavior = { kind : "success" , stdout : "fine" , stderr : "" } ;
111- await expect ( convert ( "in.txt" , "txt" , "docx" , "out/out.docx" , undefined , mockExecFile ) ) . resolves . toBe (
112- "Done" ,
113- ) ;
111+ await expect (
112+ convert ( "in.txt" , "txt" , "docx" , "out/out.docx" , undefined , mockExecFile ) ,
113+ ) . resolves . toBe ( "Done" ) ;
114114} ) ;
115115
116116test ( "rejects when execFile returns an error" , async ( ) => {
117117 behavior = { kind : "error" , message : "convert failed" , stderr : "oops" } ;
118- await expect ( convert ( "in.txt" , "txt" , "docx" , "out/out.docx" , undefined , mockExecFile ) ) . rejects . toMatch (
119- / e r r o r : E r r o r : c o n v e r t f a i l e d / ,
120- ) ;
118+ await expect (
119+ convert ( "in.txt" , "txt" , "docx" , "out/out.docx" , undefined , mockExecFile ) ,
120+ ) . rejects . toMatch ( / e r r o r : E r r o r : c o n v e r t f a i l e d / ) ;
121121} ) ;
122122
123123// --- logging behavior --------------------------------------------------------
0 commit comments