Revert "Update tests for shifting ascent/descent from km/mi to m/ft"
This reverts commit 7d89dc8310.
			
			
This commit is contained in:
		@@ -30,16 +30,16 @@ describe('formatTooltipValue', () => {
 | 
			
		||||
      expectedResult: '30.00 km',
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      description: 'returns 30 m if input is total ascent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[4], // 'total_ascent'
 | 
			
		||||
      description: 'returns 0.003 km if input is total ascent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[4], // 'total_distance'
 | 
			
		||||
      inputValue: 30,
 | 
			
		||||
      expectedResult: '30 m',
 | 
			
		||||
      expectedResult: '0.03 km',
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      description: 'returns 30 m if input is total descent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[5], // 'total_descent'
 | 
			
		||||
      description: 'returns 0.003 km if input is total descent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[5], // 'total_distance'
 | 
			
		||||
      inputValue: 30,
 | 
			
		||||
      expectedResult: '30 m',
 | 
			
		||||
      expectedResult: '0.03 km',
 | 
			
		||||
    },
 | 
			
		||||
  ]
 | 
			
		||||
 | 
			
		||||
@@ -84,16 +84,16 @@ describe('formatTooltipValue after conversion to imperial units', () => {
 | 
			
		||||
      expectedResult: '30.00 mi',
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      description: 'returns 98.43 ft if input is total ascent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[4], // 'total_ascent'
 | 
			
		||||
      description: 'returns 0.03 mi if input is total ascent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[4], // 'total_distance'
 | 
			
		||||
      inputValue: 30,
 | 
			
		||||
      expectedResult: '98.43 ft',
 | 
			
		||||
      expectedResult: '0.03 mi',
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      description: 'returns 98.43 ft if input is total descent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[5], // 'total_descent'
 | 
			
		||||
      description: 'returns 0.03 mi if input is total descent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[5], // 'total_distance'
 | 
			
		||||
      inputValue: 30,
 | 
			
		||||
      expectedResult: '98.43 ft',
 | 
			
		||||
      expectedResult: '0.03 mi',
 | 
			
		||||
    },
 | 
			
		||||
  ]
 | 
			
		||||
 | 
			
		||||
@@ -138,16 +138,16 @@ describe('formatTooltipValue (formatWithUnits = false)', () => {
 | 
			
		||||
      expectedResult: '30.00 km',
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      description: 'returns 30 m if input is total ascent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[4], // 'total_ascent'
 | 
			
		||||
      description: 'returns 0.003 km if input is total ascent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[4], // 'total_distance'
 | 
			
		||||
      inputValue: 30,
 | 
			
		||||
      expectedResult: '30 m',
 | 
			
		||||
      expectedResult: '0.03 km',
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      description: 'returns 30 m if input is total descent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[5], // 'total_decent'
 | 
			
		||||
      description: 'returns 0.003 km if input is total descent',
 | 
			
		||||
      inputDisplayedData: datasetKeys[5], // 'total_distance'
 | 
			
		||||
      inputValue: 30,
 | 
			
		||||
      expectedResult: '30 m',
 | 
			
		||||
      expectedResult: '0.03 km',
 | 
			
		||||
    },
 | 
			
		||||
  ]
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user