Skip to content

Commit 88a02ae

Browse files
committed
test(pm): the early-refusal case counts sends instead of throwing from one
Claude-Session: https://claude.ai/code/session_01ADHkmPoqLCQHtTFH1fsaSB Co-authored-by: Claude <noreply@anthropic.com>
1 parent ac1482d commit 88a02ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/pm/label-write.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3056,8 +3056,8 @@ export async function selfTest() {
30563056
t('…a report written by a governed approver is trusted, as the record leg trusts it', approver.exit, EXIT_OK);
30573057

30583058
// Ordering and shape.
3059-
const dry = await land(pull({ cards: { 8: [report(NA)] } }), { send: async () => { throw new Error('a refused land must not dispatch'); } });
3060-
t('the gate refuses BEFORE the comment is judged and before any send — the comment file is never even read', [dry.exit, dry.text.includes('② comment —')], [EXIT_USAGE, false]);
3059+
const early = await land(pull({ cards: { 8: [report(NA)] } }));
3060+
t('the gate refuses BEFORE the comment is judged and before any send — the comment file is never even read', [early.exit, early.sent.length, early.text.includes('② comment —')], [EXIT_USAGE, 0, false]);
30613061
const own = readFileSync(SELF_PATH, 'utf8');
30623062
const foldSource = own.slice(own.indexOf('async function foldStroke('), own.indexOf('export async function runRelease('));
30633063
const gateSource = own.slice(own.indexOf('export async function landDogfoodGate('), own.indexOf('export function landDogfoodRefusal('));

0 commit comments

Comments
 (0)