Page MenuHomePhabricator

[herald] Unit tests for initializing websocket
ClosedPublic

Authored by bytesofman on Apr 7 2023, 16:35.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC423960e0f8ef: [herald] Unit tests for initializing websocket
Summary

T2972

Depends on D13615

Refactor websocket functions to accept chronik and telegramBot as params, as these must be mocked in unit tests.

Add unit tests for initializing the websocket.

Note: additional unit tests to follow later in this stack

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
herald-refactor-stack
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23079
Build 45778: Build Diffecash-herald-tests
Build 45777: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Apr 9 2023, 06:31