Skip to content

Commit

Permalink
✅ add more test for reverseGeocode
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannLai committed Jan 28, 2024
1 parent 0b9fd40 commit 74ebaba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/reverseGeocode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { expect, it } from 'vitest';


it('should successfully return an address from coordinates', async () => {
const reverseGeocode = createReverseGeocode({
const [reverseGeocode] = createReverseGeocode({
mapboxAccessToken: process.env.MAPBOX_ACCESS_TOKEN || 'YOUR_FALLBACK_MAPBOX_ACCESS_TOKEN',
});

const result = await reverseGeocode.execute({
const result = await reverseGeocode({
latitude: 40.7128,
longitude: -74.006,
});
Expand Down

0 comments on commit 74ebaba

Please sign in to comment.