| 181 | }); |
| 182 | |
| 183 | const makeSomeGeoPoints = function () { |
| 184 | const sacramento = new TestObject(); |
| 185 | sacramento.set('location', new Parse.GeoPoint(38.52, -121.5)); |
| 186 | sacramento.set('name', 'Sacramento'); |
| 187 | |
| 188 | const honolulu = new TestObject(); |
| 189 | honolulu.set('location', new Parse.GeoPoint(21.35, -157.93)); |
| 190 | honolulu.set('name', 'Honolulu'); |
| 191 | |
| 192 | const sf = new TestObject(); |
| 193 | sf.set('location', new Parse.GeoPoint(37.75, -122.68)); |
| 194 | sf.set('name', 'San Francisco'); |
| 195 | |
| 196 | return Parse.Object.saveAll([sacramento, sf, honolulu]); |
| 197 | }; |
| 198 | |
| 199 | it('geo max distance in km everywhere', async done => { |
| 200 | await makeSomeGeoPoints(); |