set jest TZ and fix test

This commit is contained in:
Moriz Wahl 2022-01-20 19:13:20 +01:00
parent dcb4c31779
commit 5562e0be60
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
"dev": "yarn run serve",
"build": "vue-cli-service build",
"lint": "eslint --ext .js,.vue .",
"test": "jest --coverage",
"test": "TZ=UTC jest --coverage",
"locales": "scripts/missing-keys.sh && scripts/sort.sh"
},
"dependencies": {

View File

@ -108,7 +108,7 @@ describe('EditCreationFormular', () => {
expect.objectContaining({
variables: {
amount: 90,
creationDate: '2021-10-31',
creationDate: '2021-11-01',
email: 'bob@baumeister.de',
id: 0,
memo: 'Test create coins',
@ -180,7 +180,7 @@ describe('EditCreationFormular', () => {
expect.objectContaining({
variables: {
amount: 90,
creationDate: '2021-11-30',
creationDate: '2021-12-01',
email: 'bob@baumeister.de',
id: 0,
memo: 'Test create coins',