fix some tests

This commit is contained in:
Joshua Taillon
2022-10-25 17:38:55 -06:00
committed by Sam
parent b2509ff1c6
commit d36a1f0ac0
5 changed files with 21 additions and 6 deletions

View File

@ -19,7 +19,7 @@ describe('formatRecord', () => {
workout_id: 'hvYBqYBRa7wwXpaStWR4V2',
},
timezone: 'Europe/Paris',
date_format: 'dd/MM/yyyy'
date_format: 'yyyy/dd/MM'
},
expected: {
id: 9,
@ -181,7 +181,7 @@ describe('formatRecord after conversion', () => {
id: 10,
record_type: 'FD',
value: '11.185 mi',
workout_date: '2019/07/08',
workout_date: '2019/08/07',
workout_id: 'hvYBqYBRa7wwXpaStWR4V2',
},
},
@ -227,7 +227,7 @@ describe('formatRecord after conversion', () => {
id: 12,
record_type: 'MS',
value: '11.18 mi/h',
workout_date: '2019/07/08',
workout_date: '2019/08/07',
workout_id: 'hvYBqYBRa7wwXpaStWR4V2',
},
},
@ -401,7 +401,7 @@ describe('getRecordsBySports', () => {
id: 10,
record_type: 'FD',
value: '18 km',
workout_date: '2019/07/08',
workout_date: '2019/08/07',
workout_id: 'n6JcLPQt3QtZWFfiSnYm4C',
},
],
@ -536,7 +536,7 @@ describe('getRecordsBySports after conversion', () => {
id: 10,
record_type: 'FD',
value: '11.185 mi',
workout_date: '2019/07/08',
workout_date: '2019/08/07',
workout_id: 'n6JcLPQt3QtZWFfiSnYm4C',
},
],