Skip to content

Commit d31791f

Browse files
committed
faulty endpoint fix
1 parent b09e8ba commit d31791f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/api.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ describe("API Routes", () => {
7676
['/weather/aggregate', exampleLatLon, 200],
7777
['/weather/aggregate', { lat: exampleLat }, 400],
7878
['/weather/aggregate', { lat: exampleLat, lon: 'asd' }, 400],
79-
['ip-location', {ip: exampleIp}, 200],
80-
['ip-location', {ip: '9999.9999.9999.999'}, 400],
79+
['/ip-location', {ip: exampleIp}, 200],
80+
['/ip-location', {ip: '9999.9999.9999.999'}, 400],
8181
])('GET %s with %o -> %i', async (path, query, expected) => {
8282
const res = await request(app).get(path).query(query);
8383
expect(res.status).toBe(expected);

0 commit comments

Comments
 (0)