Commit 2d89ab9
committed
test: cover getRedeemedCodesByUsers discordId chunking path
Add a test that passes 996 discordIds with a single code (chunk size =
999 - 1 - 3 = 995) to exercise the second loop iteration, restoring
100% branch coverage on codeManager.ts.
Signed-off-by: Michael Cramer <michael@bigmichi1.de>1 parent 7c8eec1 commit 2d89ab9
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
514 | 522 | | |
515 | 523 | | |
516 | 524 | | |
| |||
0 commit comments