Geographic
.toBeGeoLatitude()
Use .toBeGeoLatitude when checking if a value is a latitude.
test('passes when value is a latitude', () => { const ROME = { latitude: 41.902783, longitude: 12.496366 }; expect(ROME.latitude).toBeGeoLatitude(); });
Tests
.toBeGeoLongitude()
Use .toBeGeoLongitude when checking if a value is a longitude.
test('passes when value is a longitude', () => { const ROME = { latitude: 41.902783, longitude: 12.496366 }; expect(ROME.longitude).toBeGeoLongitude(); });
Tests