Skip to content

Commit 85aa3a3

Browse files
fix(distance): update haversine test to expect straightline response
1 parent 1209c61 commit 85aa3a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/__tests__/distance.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,13 @@ describe("Distance API", () => {
228228
});
229229
});
230230

231-
it("Can use haversine mode", () => {
231+
it("Can use haversine mode (maps to straightline)", () => {
232232
expect.assertions(1);
233233

234234
return geocoder
235235
.distance(whiteHouse, [capitol], { mode: DistanceMode.Haversine })
236236
.then(response => {
237-
expect(response.mode).toEqual("haversine");
237+
expect(response.mode).toEqual("straightline");
238238
});
239239
});
240240

0 commit comments

Comments
 (0)