Skip to content

Commit 03f830f

Browse files
committed
test(service-analytics): keep the selection's granularity a literal type
Claude-Session: https://claude.ai/code/session_01DiCSbmJrkzNhuEAier4VoJ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2a597ea commit 03f830f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/services/service-analytics/src/__tests__/dataset-selection-window.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ describe('#3588 — the echoed SQL tells the truth on the ObjectQL path', () =>
367367
return `driver_bucket('${granularity}', ${field})`;
368368
},
369369
});
370-
const selection = { dimensions: ['created_at'], measures: ['account_count'], dateGranularity: 'month' };
370+
const selection = { dimensions: ['created_at'], measures: ['account_count'], dateGranularity: 'month' as const };
371371
const result = await svc.queryDataset(accounts, selection, CTX);
372372
expect(asked).toContain('created_at:month');
373373
expect(result.sql).toContain(`${DRIVER_BUCKET} AS "created_at"`);

0 commit comments

Comments
 (0)