Update test message and record count for asserts

This commit is contained in:
Fmstrat 2022-07-18 09:37:30 -04:00
parent f49c4184b3
commit 19d6a69813
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ def assert_workout_data_with_gpx(data: Dict, sport_id: int) -> None:
assert data['data']['workouts'][0]['with_gpx'] is True
records = data['data']['workouts'][0]['records']
assert len(records) == 4
assert len(records) == 5
assert records[0]['sport_id'] == sport_id
assert records[0]['workout_id'] == data['data']['workouts'][0]['id']
assert records[0]['record_type'] == 'MS'

View File

@ -275,7 +275,7 @@ describe('formatRecord (invalid record type)', () => {
false
)
).to.throw(
'Invalid record type, expected: "AS", "FD", "LD", "HA", "MD", got: "M"'
'Invalid record type, expected: "AS", "FD", "HA", "LD", "MD", got: "M"'
)
})
})