Page MenuHomePhabricator

[Cashtab] Move formatting functions and tests to their own util files
ClosedPublic

Authored by kieran709 on Jan 6 2022, 20:35.

Details

Summary

Formatting functions formerly found in utils/validation.js have been moved into a seperate formatting.js file. As well, the tests for these functions have been removed from validation.test.js into a formatting.test.js file.

Test Plan

cd web/cashtab
grep -r 'formatDate' src/
ensure all imports have been updated
grep -r 'formatFiatBalance' src/
ensure all imports have been updated
grep -r 'formatSavedBalance' src/
ensure all imports have been updated
grep -r 'formatBalance' src/
ensure all imports have been updated

run npm test
ensure all tests pass

Diff Detail

Repository
rABC Bitcoin ABC
Branch
move-formatting-functions
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17813
Build 35452: Build Diffcashtab-tests
Build 35451: arc lint + arc unit