Skip to content

Commit 619a1af

Browse files
committed
fix tests
1 parent 6df346a commit 619a1af

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/cubejs-schema-compiler/src/adapter/BaseMeasure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { UserError } from '../compiler/UserError';
22
import type { BaseQuery } from './BaseQuery';
3-
import { MeasureDefinition } from "../compiler/CubeEvaluator";
3+
import { MeasureDefinition } from '../compiler/CubeEvaluator';
44

55
export class BaseMeasure {
66
public readonly expression: any;

packages/cubejs-schema-compiler/test/integration/postgres/multiple-join-paths.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PostgresQuery } from '../../../src/adapter/PostgresQuery';
2-
import { prepareCompiler } from '../../unit/PrepareCompiler';
2+
import { prepareJsCompiler } from '../../unit/PrepareCompiler';
33
import { DataSchemaCompiler } from '../../../src/compiler/DataSchemaCompiler';
44
import { JoinGraph } from '../../../src/compiler/JoinGraph';
55
import { CubeEvaluator } from '../../../src/compiler/CubeEvaluator';
@@ -26,7 +26,7 @@ describe('Multiple join paths', () => {
2626
// TODO in this model queries like [A.a_id, X.x_id] become ambiguous, probably we want to handle this better
2727

2828
// language=JavaScript
29-
const prepared = prepareCompiler(`
29+
const prepared = prepareJsCompiler(`
3030
cube('A', {
3131
sql: 'SELECT 1 AS a_id, 100 AS a_value',
3232

packages/cubejs-testing/test/smoke-cubesql.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,23 +179,23 @@ describe('SQL API', () => {
179179
}
180180

181181
it('regular query', async () => {
182-
expect(await generateSql(`SELECT SUM(totalAmount) AS total FROM Orders;`)).toMatchSnapshot();
182+
expect(await generateSql('SELECT SUM(totalAmount) AS total FROM Orders;')).toMatchSnapshot();
183183
});
184184

185185
it('regular query with missing column', async () => {
186-
expect(await generateSql(`SELECT SUM(foobar) AS total FROM Orders;`)).toMatchSnapshot();
186+
expect(await generateSql('SELECT SUM(foobar) AS total FROM Orders;')).toMatchSnapshot();
187187
});
188188

189189
it('regular query with parameters', async () => {
190-
expect(await generateSql(`SELECT SUM(totalAmount) AS total FROM Orders WHERE status = 'foo';`)).toMatchSnapshot();
190+
expect(await generateSql('SELECT SUM(totalAmount) AS total FROM Orders WHERE status = \'foo\';')).toMatchSnapshot();
191191
});
192192

193193
it('strictly post-processing', async () => {
194-
expect(await generateSql(`SELECT version();`)).toMatchSnapshot();
194+
expect(await generateSql('SELECT version();')).toMatchSnapshot();
195195
});
196196

197197
it('strictly post-processing with disabled post-processing', async () => {
198-
expect(await generateSql(`SELECT version();`, true)).toMatchSnapshot();
198+
expect(await generateSql('SELECT version();', true)).toMatchSnapshot();
199199
});
200200

201201
it('double aggregation post-processing', async () => {

packages/cubejs-testing/test/smoke-duckdb.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('duckdb', () => {
9090
]
9191
});
9292

93-
// There are 2 'processed' orders
93+
// There are 2 'processed' orders
9494
expect(response.rawData()[0]['Orders.count']).toBe('2');
9595
});
9696

0 commit comments

Comments
 (0)