Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Jan 27, 2024
1 parent d0fedba commit 6deed77
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function incrementalSchemaLoadingSuite(
});

execute('should load schemas', async () => {
let inputSchemas: QuerySchemasResult[] = await driver().getSchemas();
const inputSchemas: QuerySchemasResult[] = await driver().getSchemas();
expect(inputSchemas).toBeInstanceOf(Array);
expect(inputSchemas.length).toBeGreaterThan(0);
expect(inputSchemas).toContainEqual({
Expand All @@ -36,8 +36,8 @@ export function incrementalSchemaLoadingSuite(

execute('should load tables for specific schemas', async () => {
let inputSchemas: QuerySchemasResult[] = await driver().getSchemas();
inputSchemas= inputSchemas.filter((s) => !!s.schema_name);
let inputTables = await driver().getTablesForSpecificSchemas(inputSchemas);
inputSchemas = inputSchemas.filter((s) => !!s.schema_name);
const inputTables = await driver().getTablesForSpecificSchemas(inputSchemas);
expect(inputTables).toBeInstanceOf(Array);
expect(inputTables.length).toBeGreaterThan(0);
expect(inputTables).toContainEqual({
Expand All @@ -48,7 +48,7 @@ export function incrementalSchemaLoadingSuite(

execute('should load columns for specific tables', async () => {
const createdTables = tables.map((t) => t.split('.').pop()?.toUpperCase());
let inputSchemas: QuerySchemasResult[] = await driver().getSchemas();
const inputSchemas: QuerySchemasResult[] = await driver().getSchemas();
let inputTables: QueryTablesResult[] = await driver().getTablesForSpecificSchemas(inputSchemas);
inputTables = inputTables.filter((t) => createdTables.includes(t.table_name.toUpperCase()));
const columnsForTables = await driver().getColumnsForSpecificTables(inputTables);
Expand Down

0 comments on commit 6deed77

Please sign in to comment.