diff --git a/test/parser/postgresql/contextCollect/entityCollector.test.ts b/test/parser/postgresql/contextCollect/entityCollector.test.ts index 895e0584..92b4bbc4 100644 --- a/test/parser/postgresql/contextCollect/entityCollector.test.ts +++ b/test/parser/postgresql/contextCollect/entityCollector.test.ts @@ -1,19 +1,17 @@ import { ParseTreeListener } from 'antlr4ng'; import fs from 'fs'; import path from 'path'; +import { PostgreSqlParserListener } from 'src/lib/postgresql/PostgreSqlParserListener'; import { - PostgreSqlParserListener, -} from 'src/lib/postgresql/PostgreSqlParserListener'; -import { - isCommonEntityContext, - isFuncEntityContext, - StmtContextType, + isCommonEntityContext, + isFuncEntityContext, + StmtContextType, } from 'src/parser/common/entityCollector'; import { EntityContextType } from 'src/parser/common/types'; import { - PostgreSQL, - PostgreSqlEntityCollector, - PostgreSqlSplitListener, + PostgreSQL, + PostgreSqlEntityCollector, + PostgreSqlSplitListener, } from 'src/parser/postgresql'; const commonSql = fs.readFileSync(path.join(__dirname, 'fixtures', 'common.sql'), 'utf-8'); @@ -151,7 +149,10 @@ describe('PostgreSql entity collector tests', () => { expect(columEntity.entityContextType).toBe(EntityContextType.COLUMN_CREATE); expect(columEntity.belongStmt).toBe(tableCreateEntity.belongStmt); expect(columEntity.text).toBe( - commonSql.slice(columEntity.position.startIndex, columEntity.position.endIndex + 1) + commonSql.slice( + columEntity.position.startIndex, + columEntity.position.endIndex + 1 + ) ); }); } diff --git a/test/parser/trino/suggestion/tokenSuggestion.test.ts b/test/parser/trino/suggestion/tokenSuggestion.test.ts index 6403c75f..ebc64c31 100644 --- a/test/parser/trino/suggestion/tokenSuggestion.test.ts +++ b/test/parser/trino/suggestion/tokenSuggestion.test.ts @@ -1,9 +1,6 @@ import fs from 'fs'; import path from 'path'; -import { - CaretPosition, - EntityContextType, -} from 'src/parser/common/types'; +import { CaretPosition, EntityContextType } from 'src/parser/common/types'; import { TrinoSQL } from 'src/parser/trino'; import { commentOtherLine } from 'test/helper';