Page MenuHomePhabricator

[Cashtab] Improve useWalletStorage tests
ClosedPublic

Authored by bytesofman on Feb 21 2024, 18:13.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC5c74e91f6f20: [Cashtab] Improve useWalletStorage tests
Summary

T3444

Mock the price API fetch for all tests (otherwise rendering the hook will call the actual API). Standardize format for tests of cashtabState. Improve spacing.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
better-usewallet-tests
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27300
Build 54163: Build Diffcashtab-tests
Build 54162: arc lint + arc unit