Skip to content

test: add unit tests for payment processors #487

@phoenix-server

Description

@phoenix-server

Summary

The following files have near-zero unit test coverage (~16% statements). Each payment processor should be tested in isolation using stubs/mocks for HTTP calls.

Files to cover

  • src/payments-processors/lnbits-payment-processor.ts (12%)
  • src/payments-processors/lnurl-payments-processor.ts (23%)
  • src/payments-processors/nodeless-payments-processor.ts (14%)
  • src/payments-processors/null-payments-processor.ts (40%)
  • src/payments-processors/opennode-payments-processor.ts (17%)
  • src/payments-processors/zebedee-payments-processor.ts (17%)

Out of scope

Acceptance criteria

  • Each processor has a corresponding .spec.ts under test/unit/payments-processors/
  • Happy path and error cases covered for each processor's public methods
  • No real HTTP calls — use sinon stubs
  • npm run cover:unit passes without regressions

Metadata

Metadata

Assignees

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