HomePhabricator

added timezone constant for all npm tests

Description

added timezone constant for all npm tests

Summary:
Allowing npm tests to run in UTC timezone.
This is needed because we have a jest test that checks a DateTime formatter function.
However it formats the date time to the local machines timezone, which causes the test to fail.
This change fixes that failing test no matter which time zone the tests are run.

Test Plan:
Change your machines to different time zones and run the npm tests.

bash
cd bitcoin-abc/web/cashtab
npm i
npm test
# all tests should pass!

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, bytesofman

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, bytesofman

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

Details

Provenance
darn-it-danAuthored on Jan 11 2022, 03:38
darn-it-danPushed on Jan 20 2022, 02:11
Reviewer
Restricted Owners Package
Differential Revision
D10809: added timezone constant for all npm tests
Parents
rABC7332334b80c5: [Cashtab] Moved opReturnMsg string conversion logic from Tx.js to parseTxData…
Branches
Unknown
Tags
Unknown