Skip to content
Prev Previous commit
Next Next commit
test(server): clarify audit SQL null bindings
  • Loading branch information
DavidBabinec committed Jun 26, 2026
commit 7fd476fd9fb1d4bf37281875622dd6628be78573
9 changes: 6 additions & 3 deletions src/__tests__/server/auditLogEdges.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ describe('audit log edge semantics', () => {

for (let i = 0; i < 105; i += 1) {
const metadata = i === 104 ? { nested: { unsupported: true } } : { sequence: i }
const actorUserId: string | null = null
const ipAddress: string | null = null
const userAgent: string | null = null
await harness.db`
insert into audit_events (
id,
Expand All @@ -119,13 +122,13 @@ describe('audit log edge semantics', () => {
)
values (
${`audit-edge-${i.toString().padStart(3, '0')}`},
${null},
${actorUserId},
Comment thread
github-code-quality[bot] marked this conversation as resolved.
Fixed
${'publish'},
${'site'},
${'site'},
${metadata},
${null},
${null},
${ipAddress},
Comment thread
github-code-quality[bot] marked this conversation as resolved.
Fixed
${userAgent},
Comment thread
github-code-quality[bot] marked this conversation as resolved.
Fixed
${new Date(baseTime + i * 1000).toISOString()}
)
`
Expand Down