fix some tests
This commit is contained in:
@ -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',
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user