HomePhabricator

[herald] Unit tests for parseWebsocketMessage

Description

[herald] Unit tests for parseWebsocketMessage

Summary:
T2972

Depends on D13616

Add unit tests for parseWebsocketMessage

These unit tests required a mock Telegram bot and improvements to chronikMock.js

For now, I think it's okay to maintain chronikMock.js as distinct files in both alias-server and ecash-herald. The incremental work in both apps is a good way to learn what features this mock needs. It will eventually be extended to Cashtab and live as a centralized dependency.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13617

Details

Provenance
bytesofmanAuthored on Apr 7 2023, 17:30
bytesofmanPushed on Apr 12 2023, 14:26
Reviewer
Restricted Project
Differential Revision
D13617: [herald] Unit tests for parseWebsocketMessage
Parents
rABC423960e0f8ef: [herald] Unit tests for initializing websocket
Branches
Unknown
Tags
Unknown