Page MenuHomePhabricator

[mock-chronik-client] Update syntax to match chronik-client 0.9.0
ClosedPublic

Authored by bytesofman on Nov 29 2023, 00:29.

Details

Summary

Update mock-chronik-client to match latest syntax. Add a unit test to confirm ws.subs is now supported.

Note: ChronikClient no longer has _url and _wsUrl properties. These are removed. These were not used in tests, but were included as a way of referencing that this was a mock chronik client and not an actual, connected chronik client. imo not really a value add, but now also incorrect, so has to go.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Note: these changes cause unit tests to fail in apps/ecash-herald and apps/alias-server. This diff does not change anything about the prod behavior of these apps. These failures are expected until D14869 and D14870, which upgrade chronik-client in these apps, land.

This mock is also used by Cashtab and apps/examples unit tests -- however these changes do not cause any failures there.

This revision is now accepted and ready to land.Nov 29 2023, 08:58