First and fourth different tests named the same. It may cause problems on non-'tape' test-frameworks That's why it fixed (by adding in fourth case additional 's' letter).
Next test named the same:
1)
tape("polygonCentroid(points) returns the expected value for closed counterclockwise polygons", function(test) {
test.deepEqual(polygon.polygonCentroid([[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]), [.5, .5]);
test.end();
});
It may produce warnings/errors on non-tape testing-framework, or even on another languages libraries. For example: c++ implementation, covered by catch2, warned about it:
First and fourth different tests named the same. It may cause problems on non-'tape' test-frameworks That's why it fixed (by adding in fourth case additional 's' letter).
Next test named the same:
1)
4)
It may produce warnings/errors on non-
tape
testing-framework, or even on another languages libraries. For example: c++ implementation, covered bycatch2
, warned about it: