From 7940840ebe8b67144a1e1170ca8070aa8fa608ea Mon Sep 17 00:00:00 2001 From: Rohit Kadhe Date: Sun, 24 Mar 2024 10:46:39 -0600 Subject: [PATCH] fixes --- data_types/index.ts | 1 - tests/unit/clickhouse_schema.test.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/data_types/index.ts b/data_types/index.ts index 53a2b90..7cf7df5 100644 --- a/data_types/index.ts +++ b/data_types/index.ts @@ -52,7 +52,6 @@ export const CHArray = (t: T): ChArray => new ChArray(t export const CHEnum = >(enumObj: T): ChEnum => new ChEnum(enumObj) export const CHNullable = (type: T): ChNullable => new ChNullable(type) -// You can still export the entire ClickhouseTypes object if you wish export const ClickhouseTypes = { CHUInt8, CHUInt16, diff --git a/tests/unit/clickhouse_schema.test.ts b/tests/unit/clickhouse_schema.test.ts index 05579b6..880950e 100644 --- a/tests/unit/clickhouse_schema.test.ts +++ b/tests/unit/clickhouse_schema.test.ts @@ -17,7 +17,7 @@ describe('ClickhouseSchema Tests', () => { const schema = new ClickhouseSchema(schemaDefinition, options) // eslint-disable-next-line @typescript-eslint/no-unused-vars - type ChSchemaDefinition = InferClickhouseSchemaType + type schemaType = InferClickhouseSchemaType expect(schema.GetOptions()).toEqual(options) }) @@ -136,7 +136,6 @@ describe('ClickhouseSchema Tests', () => { }) const expectedQuery = 'CREATE TABLE IF NOT EXISTS users_table\n(\nid UUID,\nname String DEFAULT \'John Doe\',\nemail String\n)\nENGINE = ReplicatedMergeTree()\nPRIMARY KEY id' const query = schema.GetCreateTableQuery() - console.log(query) expect(query).toEqual(expectedQuery) })