Skip to content

Commit b9c396e

Browse files
committed
test(service-analytics): a dataset measure needs an identifier of two characters or more
Claude-Session: https://claude.ai/code/session_01WGufzeyqyEtWpnqFTkcC9r Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2cf756c commit b9c396e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/services/service-analytics/src/__tests__/include-relation-cross-field-boundary.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ describe('[#15103] a cross-field comparand on an `include`d relation — the bou
226226

227227
describe('[#26601] the save door refuses the dotted OFFSET; the dotted bare reference still validates', () => {
228228
it('DatasetSchema refuses the offset arm at its slot, in the SQL read\'s words, and keeps the bare arm', () => {
229-
const offset = DatasetSchema.safeParse({ ...PARSED, measures: [{ name: 'x', aggregate: 'count', filter: RELATION_OFFSET_ON_TIME }] });
229+
const offset = DatasetSchema.safeParse({ ...PARSED, measures: [{ name: 'by_duty', aggregate: 'count', filter: RELATION_OFFSET_ON_TIME }] });
230230
expect(offset.success).toBe(false);
231231
expect(offset.error?.issues[0]?.path).toEqual(['measures', 0, 'filter', 'completed_on', '$lte']);
232232
expect(offset.error?.issues[0]?.message).toContain('"duty.grace_days" is a dotted path');
233233
expect(offset.error?.issues[0]?.message).toContain('same-table column references only');
234-
expect(DatasetSchema.safeParse({ ...PARSED, measures: [{ name: 'x', aggregate: 'count', filter: RELATION_BARE }] }).success).toBe(true);
234+
expect(DatasetSchema.safeParse({ ...PARSED, measures: [{ name: 'by_duty', aggregate: 'count', filter: RELATION_BARE }] }).success).toBe(true);
235235
});
236236
});
237237

0 commit comments

Comments
 (0)