Page MenuHomePhabricator

[Cashtab] Better tests for opreturn target output generating functions
ClosedPublic

Authored by bytesofman on Jun 17 2024, 16:25.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
opreturn-tests-better
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29323
Build 58182: Build Diffecash-lib-tests · cashtab-tests
Build 58181: arc lint + arc unit