Skip to content

Commit

Permalink
Update workoutSegment.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JaapvanEkris authored Dec 15, 2024
1 parent 0ed5d08 commit d35808d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/engine/utils/workoutSegment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ test('Test workoutSegment initialisation behaviour with setting a distance inter
targetTime: 0
}
}

const startingPoint = {
totalMovingTime: 0,
totalLinearDistance: 0
Expand Down Expand Up @@ -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)}`)
}
Expand Down Expand Up @@ -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()

0 comments on commit d35808d

Please sign in to comment.