Skip to content

Commit

Permalink
adopt tests with changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon committed Sep 24, 2024
1 parent 6ea4249 commit 3e2202e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ describe('prepareAnnotation helpers', () => {
type: undefined,
}
});

// query timeDimensions
expect(
prepareAnnotation([{
Expand Down Expand Up @@ -197,6 +197,11 @@ describe('prepareAnnotation helpers', () => {
shortTitle: undefined,
title: undefined,
type: undefined,
granularity: {
name: 'day',
title: 'day',
interval: '1 day',
}
},
});

Expand Down
4 changes: 2 additions & 2 deletions packages/cubejs-api-gateway/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,12 @@ describe('API Gateway', () => {
expect(res.body && res.body.data).toStrictEqual([{ 'Foo.bar': 42 }]);
expect(res.body.annotation.timeDimensions['Foo.timeGranularities.half_year_by_1st_april'])
.toStrictEqual({
granularities: [{
granularity: {
name: 'half_year_by_1st_april',
title: 'Half Year By1 St April',
interval: '6 months',
offset: '3 months',
}]
}
});
});

Expand Down

0 comments on commit 3e2202e

Please sign in to comment.