Skip to content

Commit 0dc0191

Browse files
committed
test(spec): record what changed the whitespace-only admission, beside its assertions
The same stale ground as the docblock, three lines from the symbol: the case admitted a blank structural condition as "not authored on both sides", which #15807 and #17322 ended. The two assertions are unchanged and still correct — they pin that this function does NOT carry the blank rule — and the comment now says so instead of restating a ruling that no longer holds. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MkQhmuuJAVDjmeWNixwDDH
1 parent 655e5bf commit 0dc0191

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎packages/spec/src/automation/flow-node-expression-paths.test.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,13 @@ describe('every pre-#14149 entry resolves byte-identically (the ratchet\'s fixtu
267267
it('admits every string — what it SAYS is validateExpression\'s business', () => {
268268
expect(structuralConditionRefusal('record.rating >= 4')).toBeUndefined();
269269
expect(structuralConditionRefusal('{record.rating} >= 4')).toBeUndefined();
270-
// Ruled correct, not a defect: a whitespace-only STRING means "not
271-
// authored" on both sides and stays so.
270+
// Still admitted — but on the SHAPE question only, and no longer because
271+
// the blank is correct. #15662 admitted it as "not authored on both
272+
// sides"; #15807 refused it at the edge door and #17322 rebound the node
273+
// door at `registerFlow`, so a blank structural condition IS a defect
274+
// today. It is refused there by the imported evaluated-slot rule sitting
275+
// BESIDE this one, never by this function — which is exactly what these
276+
// two assertions pin. See the docblock of `structuralConditionRefusal`.
272277
expect(structuralConditionRefusal(' ')).toBeUndefined();
273278
expect(structuralConditionRefusal('')).toBeUndefined();
274279
});

0 commit comments

Comments
 (0)