lint fixes

This commit is contained in:
dal 2025-09-16 14:56:40 -06:00
parent 0a63eee865
commit 758b6b7d96
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@ describe('snowflake-numeric-normalization.int.test.ts', () => {
};
await adapter.initialize(credentials);
// Query that returns various numeric types that Snowflake typically returns as strings
const result = await adapter.query(`
SELECT
@ -80,7 +80,7 @@ describe('snowflake-numeric-normalization.int.test.ts', () => {
expect(row.zero_decimal).toBe(0);
expect(typeof row.pi_value).toBe('number');
expect(row.pi_value).toBeCloseTo(3.14159);
expect(row.pi_value).toBeCloseTo(Math.PI, 5);
// Verify non-numeric values remain as expected types
expect(typeof row.product_name).toBe('string');
@ -111,7 +111,7 @@ describe('snowflake-numeric-normalization.int.test.ts', () => {
};
await adapter.initialize(credentials);
// Test with numbers at JavaScript's precision limits
const result = await adapter.query(`
SELECT
@ -135,7 +135,7 @@ describe('snowflake-numeric-normalization.int.test.ts', () => {
expect(row.small_decimal).toBeCloseTo(0.1);
expect(typeof row.large_decimal).toBe('number');
expect(row.large_decimal).toBeCloseTo(999999999999.999999);
expect(row.large_decimal).toBeCloseTo(1000000000000);
},
TEST_TIMEOUT
);
@ -155,7 +155,7 @@ describe('snowflake-numeric-normalization.int.test.ts', () => {
};
await adapter.initialize(credentials);
// Simulate a real scatter plot query with X and Y numeric axes
const result = await adapter.query(`
WITH scatter_data AS (
@ -192,4 +192,4 @@ describe('snowflake-numeric-normalization.int.test.ts', () => {
},
TEST_TIMEOUT
);
});
});