Commit Graph
6 Commits
Author SHA1 Message Date
Claude 75136cb613 test: add comprehensive payment system tests (lnurl, platformFee, zapReceipts, zapRequests)
Add 4 new test files covering previously untested payment/zap logic:

- lnurl.test.mjs: bech32 encode/decode roundtrip, resolveLightningAddress
  (email, lnurl, URL formats), fetchPayServiceData (success, HTTP errors,
  invalid JSON, error status), validateInvoiceAmount (boundaries, invalid
  inputs), requestInvoice (comment truncation, amount formats, error paths)

- platform-fee.test.mjs: parsePercentValue (numbers, bigints, strings with
  %, fractions, edge cases), clampPercent (boundaries, NaN, non-finite),
  getDefaultPlatformFeePercent, resolvePlatformFeePercent (override vs
  fallback behavior)

- zap-receipt-validator.test.mjs: computeZapRequestHash determinism,
  extractDescriptionHashFromBolt11, validateZapReceipt covering all failure
  modes (missing request, invalid JSON, no relays, missing invoice,
  hash mismatch, amount mismatch, wrong pubkey, invalid signature,
  no receipt found) plus success path and override injection

- zap-requests.test.mjs: normalizeRelayList (dedup, filtering, empty),
  resolveLnurlTag (bech32 vs email addresses), buildZapRequestPayload
  (minimal and full params, timestamp handling), signZapRequest (signer
  validation)

Also updates todo-test-coverage-gaps.md with a prioritized, detailed plan
covering all remaining untested areas (P0 through P3).

https://claude.ai/code/session_01QDsPRh4f31ZpDYqS1kETFV
2026-02-05 14:50:41 +00:00
Claude 334aac108e docs: add TODO for remaining test coverage gaps
Document areas that still need test coverage improvement,
prioritized by impact and risk.

https://claude.ai/code/session_01WbLkUVQ5yi1bnSvGZErC3C
2026-02-04 17:31:24 +00:00
google-labs-jules[bot]andPR0M3TH3AN 161afea23d chore(ai): dependency scan and report
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 09:59:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN dc1a6b7338 chore(ai): triage TODOs and create issue for moderation tests
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 01:29:00 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8902f31240 chore(ai): dependency scan and issue updates
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 09:52:27 +00:00
google-labs-jules[bot] d659c4d208 chore(deps): dependency scan and upgrade reports 2026-01-26 09:11:01 +00:00