Skip to content

Commit 6809e16

Browse files
Try fix flimsy test on CI (#2476)
1 parent 9d242ff commit 6809e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/react-mapbox/test/components/map.spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ test('Map#uncontrolled', t => {
9393
if (!mapRef.current) return;
9494
const center = mapRef.current.getCenter();
9595
if (lastCenter) {
96-
t.ok(lastCenter.lng > center.lng && lastCenter.lat > center.lat, `animated to ${center}`);
96+
t.ok(lastCenter.lng >= center.lng && lastCenter.lat >= center.lat, `animated to ${center}`);
9797
}
9898
lastCenter = center;
9999
}

0 commit comments

Comments
 (0)