Commit 823ea64
committed
test(coverage): cover getTokenOrigin config-flag + persisted-config branches
Adds tests using existing mocks for getConfigValueOrUndef + isConfigFromFlag
to exercise both branches of line 56 in with-subcommands-banner.mts:
- token from config + isConfigFromFlag=true → "(--config flag)"
- token from persisted config + isConfigFromFlag=false → "(config)"
with-subcommands-banner.mts: 92.16% → 94.11% statements.1 parent 743a83c commit 823ea64
1 file changed
Lines changed: 43 additions & 0 deletions
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
475 | 518 | | |
476 | 519 | | |
477 | 520 | | |
| |||
0 commit comments