Page MenuHomePhabricator

[alias-server] Improve code organization, generate mocks from script
ClosedPublic

Authored by bytesofman on Mar 6 2023, 22:27.

Details

Summary

T2960

Was going to patch some other bugs but needed to organize the code first and clean up index.js. Move util functions out of index.js and into new script in new scripts folder. Call with new npm script.

Test Plan

npm run mocks and observe mocks generated in test/mocks/generated folder
clear database and node index.js, add a new alias using cashtab, confirm it's added to the db

Diff Detail

Repository
rABC Bitcoin ABC
Branch
save-aliases-lowercase
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22277
Build 44189: Build Diff
Build 44188: arc lint + arc unit