Page MenuHomePhabricator

[Cashtab] Disable localization in unit tests
ClosedPublic

Authored by bytesofman on Jan 7 2022, 15:04.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC204ee4fc8d6d: [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

Diff Detail

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