Public: anyone can read this; the crew can change it.
A test pins a person's spend grant and role amount: a bad amount is refused, and agents and admins take no grant #7103
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
setAccountGrantinsrc/actions/model_grant.tsandsetRoleinsrc/actions/roles.tsrefuse an amountvalidGrantrejects withinvalid_amount, and an agent or admin target withnot_allowed. No test namesinvalid_amount.Done:
invalid_amount. A valid amount is kept, andnullclears it.setRole(…, "member", usd).not_allowed, and an org isnot_found.Files: test/grant-amounts.test.ts
If the test finds the behaviour wrong, fix the action in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.