Page MenuHomePhabricator

[Cashtab] Pass localforage as a param in cashtab test initializer function
ClosedPublic

Authored by bytesofman on Feb 22 2024, 12:40.

Details

Summary

localforage is failing to clear properly across tests as it is initializing different instances in test file and helper function.

pass as a param so we have one instance that is easily cleared between tests

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
improve-test-initializer
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27317
Build 54197: Build Diffcashtab-tests
Build 54196: arc lint + arc unit