@@ -415,12 +415,12 @@ describe("Database Operations", () => {
415415 const offenders = await findRepeatOffenders ( 3 ) ;
416416
417417 // Should find the user with 4+ actions
418- const repeatOffender = offenders . find ( ( o ) => o . discordId === "repeat_offender" ) ;
418+ const repeatOffender = offenders . find ( ( offender ) => offender . discordId === "repeat_offender" ) ;
419419 assert . ok ( repeatOffender ) ;
420420 assert . ok ( repeatOffender . count >= 4 ) ;
421421
422422 // Minor offender shouldn't be in the list
423- const minorOffender = offenders . find ( ( o ) => o . discordId === "minor_offender" ) ;
423+ const minorOffender = offenders . find ( ( offender ) => offender . discordId === "minor_offender" ) ;
424424 assert . strictEqual ( minorOffender , undefined ) ;
425425 } ) ;
426426
@@ -441,7 +441,8 @@ describe("Database Operations", () => {
441441
442442 // Should have at least the 2 we just created
443443 const ourKicks = kickActions . filter (
444- ( a ) => a . target . discordId === "target015" || a . target . discordId === "target016"
444+ ( action ) =>
445+ action . target . discordId === "target015" || action . target . discordId === "target016"
445446 ) ;
446447 assert . strictEqual ( ourKicks . length , 2 ) ;
447448 } ) ;
@@ -477,7 +478,7 @@ describe("Database Operations", () => {
477478 SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%' AND name NOT LIKE '_prisma%'
478479 ` ;
479480
480- const tableNames = tables . map ( ( t ) => t . name ) ;
481+ const tableNames = tables . map ( ( table ) => table . name ) ;
481482 assert . ok ( tableNames . includes ( "User" ) ) ;
482483 assert . ok ( tableNames . includes ( "ModerationAction" ) ) ;
483484 } ) ;
@@ -487,7 +488,7 @@ describe("Database Operations", () => {
487488 SELECT name FROM sqlite_master WHERE type='index' AND name NOT LIKE 'sqlite_%'
488489 ` ;
489490
490- const indexNames = indexes . map ( ( i ) => i . name ) ;
491+ const indexNames = indexes . map ( ( index ) => index . name ) ;
491492 assert . ok ( indexNames . some ( ( name ) => name . includes ( "discordId" ) ) ) ;
492493 assert . ok ( indexNames . some ( ( name ) => name . includes ( "targetId" ) ) ) ;
493494 assert . ok ( indexNames . some ( ( name ) => name . includes ( "moderatorId" ) ) ) ;
0 commit comments