Page MenuHomePhabricator

[Cashtab] Better helper function to clear localforage between tests
ClosedPublic

Authored by bytesofman on Feb 22 2024, 14:41.

Details

Summary

localforage.clear() is not always clearing storage in between tests. localforage is not actively maintained.

We should probably move away from localforage. However, we need to standardize how we use storage first. For now, just use an effective clearing method.

No tests added for this function as we do not want to test the library. In practice, we will notice if it is not working as existing tests will fail.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable