Page MenuHomePhabricator

[herald] Improve mocked chronik
ClosedPublic

Authored by bytesofman on Apr 8 2023, 12:07.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC0f77bd39c5f3: [herald] Improve mocked chronik
Summary

T2972

Depends on D13625

Implements lessons learned about how to best mock chronik from unit tests.

Test Plan

npm test

Diff Detail

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

Event Timeline

Fabien requested changes to this revision.Apr 9 2023, 07:09
Fabien added a subscriber: Fabien.

This is looking much better, nice

apps/ecash-herald/src/main.js
15 ↗(On Diff #39424)

that looks like a debug leftover, remove

25 ↗(On Diff #39424)

dito

apps/ecash-herald/test/mocks/chronikMock.js
41 ↗(On Diff #39424)

remove

This revision now requires changes to proceed.Apr 9 2023, 07:09
This revision is now accepted and ready to land.Apr 10 2023, 18:57
This revision was automatically updated to reflect the committed changes.