mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-04-01 16:15:40 +00:00
Gap 1 (#123): Add 3 decoder tests for GRP_TXT decrypted status path. Mock ChannelCrypto via require.cache to simulate successful decryption. Tests cover: sender+message formatting, no-sender fallback, multi-key iteration with first-match-wins semantics. Gap 2 (#131): Rewrite 5 src.includes() string-match tests as runtime vm.createContext tests. New makeNodesWsSandbox() helper with controllable setTimeout, mock DOM, tracked API/cache calls, and real debouncedOnWS. Tests verify: ADVERT triggers refresh, non-ADVERT ignored, debounce collapses multiple ADVERTs, cache reset forces re-fetch, scroll/selection preserved during WS-triggered refresh. Decoder: 58 -> 61 tests. Frontend helpers: 87 (5 replaced, not added). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
18 KiB
18 KiB