@ -7,10 +7,10 @@ expect.extend({
}
const COMPARE = 1 / Math.pow(10, precision || 2);
const pass = received.every(
const pass = expected.every(
(point, idx) =>
Math.abs(expected[idx]?.[0] - point[0]) < COMPARE &&
Math.abs(expected[idx]?.[1] - point[1]) < COMPARE,
Math.abs(received[idx]?.[0] - point[0]) < COMPARE &&
Math.abs(received[idx]?.[1] - point[1]) < COMPARE,
);
if (!pass) {