@@ -306,7 +306,11 @@ describe("Loan Dispute/Appeal Mechanism", () => {
306306 const res = await request ( app )
307307 . post ( `/api/admin/disputes/${ disputeId } /resolve` )
308308 . set ( "Authorization" , `Bearer ${ adminToken } ` )
309- . send ( { action : "confirm" , resolution : "JWT valid default." , token : "super_secret_token" } ) ;
309+ . send ( {
310+ action : "confirm" ,
311+ resolution : "JWT valid default." ,
312+ token : "super_secret_token" ,
313+ } ) ;
310314
311315 expect ( res . status ) . toBe ( 200 ) ;
312316 expect ( res . body . success ) . toBe ( true ) ;
@@ -317,15 +321,16 @@ describe("Loan Dispute/Appeal Mechanism", () => {
317321 const calls = mockQuery . mock . calls ;
318322 const auditLogCall = calls . find (
319323 ( call : any [ ] ) =>
320- typeof call [ 0 ] === "string" && call [ 0 ] . includes ( "INSERT INTO audit_logs" ) ,
324+ typeof call [ 0 ] === "string" &&
325+ call [ 0 ] . includes ( "INSERT INTO audit_logs" ) ,
321326 ) ;
322327
323328 expect ( auditLogCall ) . toBeDefined ( ) ;
324329 if ( auditLogCall ) {
325330 expect ( auditLogCall [ 1 ] [ 0 ] ) . toBe ( TEST_PUBLIC_KEY ) ;
326331 expect ( auditLogCall [ 1 ] [ 1 ] ) . toContain ( "POST /disputes" ) ;
327332 expect ( auditLogCall [ 1 ] [ 2 ] ) . toBe ( `DisputeID:${ disputeId } ` ) ;
328-
333+
329334 const payloadString = auditLogCall [ 1 ] [ 3 ] ;
330335 expect ( payloadString ) . toContain ( "JWT valid default." ) ;
331336 expect ( payloadString ) . toContain ( "[REDACTED]" ) ;
0 commit comments