diff --git a/app/engine/utils/workoutSegment.test.js b/app/engine/utils/workoutSegment.test.js index 2962210883..59c7b85f4a 100644 --- a/app/engine/utils/workoutSegment.test.js +++ b/app/engine/utils/workoutSegment.test.js @@ -62,7 +62,7 @@ test('Test workoutSegment initialisation behaviour with setting a distance inter targetTime: 0 } } - + const startingPoint = { totalMovingTime: 0, totalLinearDistance: 0 @@ -98,7 +98,6 @@ test('Test workoutSegment initialisation behaviour with setting a distance inter testExtrapolation(testSegment, middlePoint, endPoint, 485, 2025) }) - function testDistanceFromStart (testedSegment, testedDatapoint, expectedValue) { assert.ok(testedSegment.distanceFromStart(testedDatapoint) === expectedValue, `Expected distance from the start should be ${expectedValue}, encountered ${testedSegment.distanceFromStart(testedDatapoint)}`) } @@ -132,5 +131,4 @@ function testExtrapolation (testedSegment, dataPointOne, dataPointTwo, ExpectedT assert.ok(testedSegment.interpolateEnd(dataPointOne, dataPointTwo).totalLinearDistance === ExpectedDistance, `Expected time to end to be ${ExpectedDistance}, encountered ${testedSegment.interpolateEnd(dataPointOne, dataPointTwo).totalLinearDistance}`) } - test.run()