Skip to content

Commit 8c86b0c

Browse files
committed
test(runtime): compare the door's finding before its quoted source
Claude-Session: https://claude.ai/code/session_01L9qibz2oLCRAYBpwsBBUyG Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2087f66 commit 8c86b0c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/runtime/src/domains/meta-flow-condition-record-date-text.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ describe('[#36377] the flow publish door refuses a bare date ordering before dat
233233
const issues = dateArithmeticIssues(err);
234234
expect(issues, `${root}: ${JSON.stringify(err.issues)}`).toHaveLength(1);
235235
expect(issues[0].message).toContain(`— \`${root}.due_date\` is a date field, and the runtime holds`);
236-
expect(issues.map((i: any) => i.message), root).toEqual(dateArithmeticIssues(allRoot).map((i: any) => i.message));
236+
// The door's message ends by quoting the source; the finding before it is the all-root spelling's.
237+
const finding = (i: any) => String(i.message).split(' — source: ')[0];
238+
expect(issues.map(finding), root).toEqual(dateArithmeticIssues(allRoot).map(finding));
237239
expect(await rig.state(name), root).toEqual(['draft']);
238240
}
239241
}, 60_000);

0 commit comments

Comments
 (0)