Skip to content

Commit 85fc18c

Browse files
committed
fix tests
1 parent 9c1fafb commit 85fc18c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cubejs-schema-compiler/test/unit/schema.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,12 +557,12 @@ describe('Schema Testing', () => {
557557

558558
describe('Views', () => {
559559
it('extends custom granularities and timeshifts', async () => {
560-
const { compiler, metaTransformer } = prepareJsCompiler([
560+
const { compiler, cubeEvaluator } = prepareJsCompiler([
561561
createCubeSchemaWithCustomGranularitiesAndTimeShift('orders')
562562
]);
563563
await compiler.compile();
564564

565-
const { measures, dimensions } = metaTransformer.cubeEvaluator.evaluatedCubes.orders_view;
565+
const { measures, dimensions } = cubeEvaluator.evaluatedCubes.orders_view;
566566
expect(dimensions.createdAt).toMatchSnapshot();
567567
expect(measures.count_shifted_year).toMatchSnapshot();
568568
});
@@ -572,10 +572,10 @@ describe('Schema Testing', () => {
572572
path.join(process.cwd(), '/test/unit/fixtures/folders.yml'),
573573
'utf8'
574574
);
575-
const { compiler, metaTransformer } = prepareYamlCompiler(modelContent);
575+
const { compiler, cubeEvaluator } = prepareYamlCompiler(modelContent);
576576
await compiler.compile();
577577

578-
const testView3 = metaTransformer.cubeEvaluator.evaluatedCubes.test_view3;
578+
const testView3 = cubeEvaluator.evaluatedCubes.test_view3;
579579
expect(testView3.dimensions).toMatchSnapshot();
580580
expect(testView3.measures).toMatchSnapshot();
581581
expect(testView3.measures).toMatchSnapshot();

0 commit comments

Comments
 (0)