HomePhabricator

[Cashtab] Improve target output generation tests

Description

[Cashtab] Improve target output generation tests

Summary:
Depends on D16339

When tests were written, did not have a good solution to the problem of "cannot store Buffer in mocks." So, tests were designed to fit around imagined restriction of "mocks should only be the hex string."

This led to complicated tests and even some missed cases as functions were improved.

Refactor tests so that we are exactly matching mocks.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
bytesofmanAuthored on Jun 17 2024, 10:54
bytesofmanPushed on Jun 17 2024, 14:53
Reviewer
Restricted Project
Differential Revision
D16340: [Cashtab] Improve target output generation tests
Parents
rABC10448e28fa7a: [Cashtab] Remove duplicated test
Branches
Unknown
Tags
Unknown