lint fixes

This commit is contained in:
Boki 2025-06-20 07:15:12 -04:00
parent 1f190b1068
commit c1d04723e1
17 changed files with 34 additions and 27 deletions

View file

@ -5,7 +5,7 @@
* without requiring an actual QuestDB instance.
*/
import { afterEach, beforeEach, describe, expect, it, mock, spyOn } from 'bun:test';
import { afterEach, beforeEach, describe, expect, it, mock } from 'bun:test';
import {
createQuestDBClient,
QuestDBClient,
@ -33,7 +33,7 @@ describe('QuestDB Client Integration', () => {
if (client && client.connected) {
try {
await client.disconnect();
} catch (error) {
} catch {
// Ignore cleanup errors in tests
}
}

View file

@ -5,7 +5,7 @@
* Provides utilities and mocks for testing database operations.
*/
import { beforeAll, beforeEach, mock, spyOn } from 'bun:test';
import { beforeAll, beforeEach, mock } from 'bun:test';
import { newDb } from 'pg-mem';
// Mock PostgreSQL database for unit tests
@ -124,7 +124,7 @@ beforeEach(() => {
pgMem.public.none('DROP TABLE IF EXISTS indicators CASCADE');
pgMem.public.none('DROP TABLE IF EXISTS performance CASCADE');
pgMem.public.none('DROP TABLE IF EXISTS risk_metrics CASCADE');
} catch (error) {
} catch {
// Tables might not exist, ignore errors
}
} // Reset fetch mock
@ -248,7 +248,7 @@ export const questdbTestHelpers = {
*/
validateQuestDBQuery: (query: string): boolean => {
// Basic validation for QuestDB-specific syntax
const questdbKeywords = ['SAMPLE BY', 'LATEST BY', 'ASOF JOIN', 'SPLICE JOIN', 'LT JOIN'];
const _questdbKeywords = ['SAMPLE BY', 'LATEST BY', 'ASOF JOIN', 'SPLICE JOIN', 'LT JOIN'];
// Check for valid SQL structure
const hasSelect = /SELECT\s+/i.test(query);