Page MenuHomePhabricator

[Cashtab] Move chronik functions out of utils/chronik
AbandonedPublicDraft

Authored by bytesofman on Jan 23 2024, 21:39.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Move chronik functions to their own dir and out of utils

Unit tests and mocks should still be refactored for maintainability. But that should happen after the move.

This diff

  • Moves all mocks used by chronik unit tests into src/chronik/fixtures/mocks.js
  • Copies src/utils/chronik.js to src/chronik/index.js
  • Copies chronik unit test file to new dir and updates imports for new mock location
  • Deletes old mock files
  • Updates imports

It's a lot, but npm test confirms no changes

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
move-chronik-out-of-utils
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26589
Build 52748: Build Diffcashtab-tests
Build 52747: arc lint + arc unit