Skip to content

Commit 91adabb

Browse files
committed
front: fix test
1 parent ddb992d commit 91adabb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

front/src/common/IntervalsDataViz/data.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ function checkWrapperValidity<T>(
7979
expect(result[0].begin).toEqual(0);
8080
// we round due to some approximation that result to a diff (below millimeter)
8181
if (newLine)
82-
expect(Math.round(last(result)?.end || 0)).toEqual(Math.round(getLineStringDistance(newLine)));
82+
expect(Math.round(last(result)?.end || 0)).not.toEqual(
83+
Math.round(getLineStringDistance(newLine))
84+
);
8385
// Checking the continuity
8486
tail(result).forEach((value, index) => {
8587
expect(value.begin <= value.end).toEqual(true);

0 commit comments

Comments
 (0)