Cover all important aspects of nostr-data service with tests #88

Merged
raucao merged 3 commits from dev/nostr-data-tests into master 2026-08-27 17:15:53 +00:00
3 Commits
Author SHA1 Message Date
raucao bf3011115b Reorganize nostr-data tests into focused modules
CI / Lint (pull_request) Successful in 1m17s
CI / Test (pull_request) Successful in 1m35s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
Split the monolithic test file into 8 single-responsibility modules:
contacts, relay configuration, provenance, trust evaluation, geohash
loading, place photos, my contributions, and zap receipts. Extract
shared setup helper to eliminate duplication.
2026-08-27 11:12:10 -06:00
raucao 8c98e0757b Add nostr-data loading and presentation tests
Cover loadPlacesInBounds (geohash prefix dedup, cache hydration,
network filters), loadPhotosForPlace (entity switching, subscription
teardown, reset semantics), and trust presentation (default hiding of
untrusted photos, reveal toggle, own-content bypass).
2026-08-27 10:47:10 -06:00
raucao 2ae9a78f5d Fix kind 5 deletion provenance cleanup, add nostr-data tests
Listen to the store's deletes stream instead of a timeline (kind 5
events never enter the event database), and unsubscribe the
subscription on destroy. Add unit tests for relay getters,
provenance handling, and trust partitioning.
2026-08-27 10:32:35 -06:00