Skip to content

Write unit tests for payment_service` #49

Description

@Nemenwq

Dependencies: Implemented service logic (at minimum Issues #30#32 and whatever else exists in payment_service).

Context:
Ensures payment business logic remains stable.

Scope:

Implementation Notes:

  • Prefer deterministic tests: mock Soroban client (Issue Implement Soroban client service` #55), HTTP calls, and time.
  • Include negative tests (invalid inputs, unauthorized access, race conditions).

Acceptance Criteria:

  • Coverage > 80%.
  • Happy + error paths covered.
  • Dependencies mocked.

Files: backend/payment_service/src/*.spec.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions