Fix jest tests by adding tz to mocks

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-10-18 11:49:41 +02:00
parent f24ec89408
commit 1df9f84c20
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "yarn run build:assets && yarn run build:pictures",
"test:unit": "LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 vue-cli-service test:unit",
"test:unit": "LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 TZ=UTC vue-cli-service test:unit",
"test:e2e": "vue-cli-service test:e2e",
"lint": "vue-cli-service lint",
"build:assets": "vue-cli-service build",

View file

@ -61,6 +61,7 @@ export const joinEventMock = {
email: "some@email.tld",
message: "a message long enough",
locale: "en_US",
timezone: "UTC",
};
export const eventNoCommentThreadsMock = {