HomePhabricator

[Cashtab] Better tests for opreturn target output generating functions

Description

[Cashtab] Better tests for opreturn target output generating functions

Summary: Unit tests should match the exact expected output. Neglected previously as did not realize could do it easily enough (while maintaining an easy-to-read hex string for the desired OP_RETURN) by generating the Buffer in the mocks.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
bytesofmanAuthored on Jun 17 2024, 16:24
teamcityPushed on Jun 17 2024, 19:13
Parents
rSTAGINGd43ea4a3c8e6: [ecashaddrjs] Fix change log section of README
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/48284, tag: phabricator/base/48283

Event Timeline