Commit 796eefe
committed
test(tools): stop the preserves-whitespace branch swallowing a rejection
cubic found the whitespace assertion tolerated a throw unconditionally, even in
the branch whose docstring says padding must survive to the wire. A regression
that made safeUrlPath trim or refuse padding would have left the suite green —
the same assertion-that-cannot-fail class this file exists to prevent.
The tolerance now applies only to ordinary ids, where refusing padding is an
equally correct outcome. Verified: pointing the Supabase storage key at a
guard that refuses padding now fails the assertion instead of passing.1 parent 6dace54 commit 796eefe
1 file changed
Lines changed: 22 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
540 | 561 | | |
541 | 562 | | |
542 | 563 | | |
543 | 564 | | |
544 | 565 | | |
545 | 566 | | |
546 | 567 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
| 568 | + | |
556 | 569 | | |
557 | 570 | | |
558 | 571 | | |
| |||
0 commit comments