Client - replace sports PNG images with SVG

This commit is contained in:
Sam
2021-10-01 16:48:48 +02:00
parent ba0b94de45
commit 5856599377
28 changed files with 461 additions and 118 deletions

View File

@@ -1,6 +1,6 @@
import { assert, expect } from 'chai'
import { sports } from './fixtures'
import { translatedSports } from './fixtures'
import { formatRecord, getRecordsBySports } from '@/utils/records'
@@ -157,7 +157,7 @@ describe('getRecordsBySports', () => {
},
expected: {
'Cycling (Sport)': {
img: '/img/sports/cycling-sport.png',
label: 'Cycling (Sport)',
records: [
{
id: 9,
@@ -206,7 +206,7 @@ describe('getRecordsBySports', () => {
},
expected: {
'Cycling (Sport)': {
img: '/img/sports/cycling-sport.png',
label: 'Cycling (Sport)',
records: [
{
id: 9,
@@ -225,7 +225,7 @@ describe('getRecordsBySports', () => {
],
},
'Cycling (Transport)': {
img: '/img/sports/cycling-transport.png',
label: 'Cycling (Transport)',
records: [
{
id: 10,
@@ -244,7 +244,7 @@ describe('getRecordsBySports', () => {
assert.deepEqual(
getRecordsBySports(
testParams.input.records,
sports,
translatedSports,
testParams.input.tz
),
// eslint-disable-next-line @typescript-eslint/ban-ts-comment