Skip to content

Commit f0ecb34

Browse files
committed
test(pm): keep the expansion-note case null-safe so an ablation reads as named red cases
Claude-Session: https://claude.ai/code/session_01HEdP5tPhqQfzwRmKDxwn85 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7b7e7bb commit f0ecb34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/pm/post-stamped.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4923,7 +4923,7 @@ export function selfTest() {
49234923
// The stderr line: ONE, naming the count, on BOTH output shapes, whatever the verdict.
49244924
const NOTE = referenceExpansionNote(X.readBack);
49254925
t('⭐ the stderr line names the count and the prefix', typeof NOTE === 'string' && NOTE.includes('2 bare reference(s)') && NOTE.includes(`\`${OWN}#N\``) && NOTE.includes('\n') === false, NOTE);
4926-
t('…and carries the one prescription that matters: ⛔ never write that read back as it reads', NOTE.includes('⛔ Never write a body read on this path back as it reads'));
4926+
t('…and carries the one prescription that matters: ⛔ never write that read back as it reads', typeof NOTE === 'string' && NOTE.includes('⛔ Never write a body read on this path back as it reads'));
49274927
t('…said for a MUTATED read that carried an expansion too, and for no read that carried none',
49284928
referenceExpansionNote(C.readBack) !== null && referenceExpansionNote(rb({ sent: SENT, stored: SENT }).readBack) === null && referenceExpansionNote(rb({ sent: SENT, stored: undefined }).readBack) === null);
49294929
const ownSource = readFileSync(SELF_PATH, 'utf8');

0 commit comments

Comments
 (0)