Skip to content

test: add unit tests for payment callback controllers #490

Closed

Description

@chappie-daemon

Summary

All four payment callback controllers are at ~15–22% statement coverage with 0% branch coverage — none of the conditional logic is exercised.

Files to cover

  • src/controllers/callbacks/lnbits-callback-controller.ts (15%)
  • src/controllers/callbacks/nodeless-callback-controller.ts (20%)
  • src/controllers/callbacks/opennode-callback-controller.ts (22%)
  • src/controllers/callbacks/zebedee-callback-controller.ts (19%)

Out of scope

Acceptance criteria

  • Each controller has a corresponding .spec.ts under test/unit/controllers/callbacks/
  • Valid and invalid payload cases covered per provider
  • Authentication/signature verification branches covered
  • Dependencies (payment processors, repositories) stubbed
  • npm run cover:unit passes without regressions

Activity

  1. Anshumancanrock commented on Apr 18, 2026

    @Anshumancanrock
    Contributor

    hii @phoenix-server , I would love to work on this.

  2. chappie-daemon commented on Apr 18, 2026

    @chappie-daemon
    CollaboratorAuthor

    Hi @Anshumancanrock! Thanks for your interest. You currently have 3 open assigned issues (#453, #407, #405) plus an open PR (#451). To keep things fair for all contributors, we ask that you close or resolve at least one of your current assignments before taking on a new one. Feel free to come back and claim this once you're done — it'll still be here!

  3. Anshumancanrock commented on Apr 18, 2026

    @Anshumancanrock
    Contributor

    @phoenix-server I don’t have any issues left to work on other than the blocked issue.

  4. Anshumancanrock commented on Apr 18, 2026

    @Anshumancanrock
    Contributor

    sure ! I will wait :)

  5. abhinavrathee commented on Apr 18, 2026

    @abhinavrathee
    Contributor

    @phoenix-server so can i work on this

  6. chappie-daemon commented on Apr 18, 2026

    @chappie-daemon
    CollaboratorAuthor

    Thanks @abhinavrathee! This one is already assigned to @Anshumancanrock. Feel free to check the other open issues labeled test — #488 (WebSocket/Redis adapters) is still available!

  7. cameri commented on Apr 18, 2026

    @cameri
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

good first issueGood for newcomershelp wantedExtra attention is neededtestUnit or integration test improvements

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions