Skip to content

Commit fbeba5e

Browse files
committed
fix: resolve lint errors
1 parent d4d01ab commit fbeba5e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/unit/database/schema.timestamps.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ describe('schema timestamp consistency', () => {
1313
const matches = schemaSource.match(timestampCallRegex);
1414

1515
expect(matches).not.toBeNull();
16-
expect(matches!.length).toBeGreaterThan(0);
16+
if (!matches) return;
17+
18+
expect(matches.length).toBeGreaterThan(0);
1719

1820
const missing: string[] = [];
19-
for (const match of matches!) {
21+
for (const match of matches) {
2022
if (!match.includes('withTimezone: true')) {
2123
missing.push(match);
2224
}

0 commit comments

Comments
 (0)