Parent
#68
What to build
A jsdom integration test asserting that after deleteTrade is called on a chain-imported trade, the trade is absent from trades and the txHash is still present in hw_synced_v1.
This locks ADR 0006's invariant as an executable specification so it cannot be accidentally broken by future changes to deleteTrade or the synced-set management.
Prior art: test/integration/chain-sync-outcomes.test.js — boots the full app via setupJsdom(), drives globals, and asserts on localStorage.
Acceptance criteria
Blocked by
Parent
#68
What to build
A jsdom integration test asserting that after
deleteTradeis called on a chain-imported trade, the trade is absent fromtradesand the txHash is still present inhw_synced_v1.This locks ADR 0006's invariant as an executable specification so it cannot be accidentally broken by future changes to
deleteTradeor the synced-set management.Prior art:
test/integration/chain-sync-outcomes.test.js— boots the full app viasetupJsdom(), drives globals, and asserts on localStorage.Acceptance criteria
test/integration/setupJsdom()and callst.after(teardown)txHash) totradesand the txHash tohw_synced_v1deleteTrade(id)on that tradetradeshw_synced_v1npm testpasses with the new test includedBlocked by