HomePhabricator

[Cashtab] Use correct jest syntax in unit tests

Description

[Cashtab] Use correct jest syntax in unit tests

Summary:
Found some Cashtab tests using assert instead of jest syntax in unit tests. These can still ... work. Sort of. However the point of using jest is to better test the react environment vs node.

Can see there was one issue in the cashMethods.test.js where the wrong type was being tested and asset did not catch it.

Test Plan:
npm test
grep -r assert src/ and no output

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
bytesofmanAuthored on Jan 1 2024, 23:37
bytesofmanPushed on Jan 2 2024, 16:58
Reviewer
Restricted Project
Differential Revision
D15056: [Cashtab] Use correct jest syntax in unit tests
Parents
rABC71c4d5d3cf26: [chronik-client] Add docker images required for ci deployments
Branches
Unknown
Tags
Unknown