HomePhabricator

[Cashtab] Disable localization in unit tests

Description

[Cashtab] Disable localization in unit tests

Summary:
Related to T2088

Ensure that unit tests are run in a fixed locale. This prevents users in different locales from changing snapshot files, for example . going to , for decimal indicator.

Test Plan:
0. Be in France

  1. Alter text in Send.js, for example "Are you sure you want to send" to "Are you sure you want to test"
  2. npm test (update snapshot when prompted)
  3. Confirm . is used for decimal indicator even if run from France

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D10787

Details

Provenance
Joey King <joseph.roy.king@gmail.com>Authored on Jan 7 2022, 14:57
bytesofmanPushed on Jan 7 2022, 15:11
Reviewer
Restricted Project
Differential Revision
D10787: [Cashtab] Disable localization in unit tests
Parents
rABCe0303815ca4a: refactor: remove use of boost::algorithm::replace_first
Branches
Unknown
Tags
Unknown

Event Timeline