From 6a442c50cbe958c70ca0f34753642c3b115fe2e1 Mon Sep 17 00:00:00 2001 From: Edward Zhang Date: Thu, 13 Aug 2026 15:29:34 -0700 Subject: [PATCH] test: update vitest version & fix typo in url --- package.json | 4 ++-- test/path.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2b7b90a..69aa221 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,8 @@ "devDependencies": { "@types/express": "^4.17.21", "@types/node": "^20.12.12", - "@vitest/coverage-v8": "^1.2.2", + "@vitest/coverage-v8": "^4.1.10", "typedoc": "^0.28.15", - "vitest": "^1.2.2" + "vitest": "^4.1.10" } } diff --git a/test/path.test.ts b/test/path.test.ts index eb0a602..2450889 100644 --- a/test/path.test.ts +++ b/test/path.test.ts @@ -56,7 +56,7 @@ describe('API Endpoints', () => { // Test another path with different coordinates // const response2 = await axios.get(`${BASE_URL}/plan-journey?originLat=42.277682&originLon=-83.734936&destLat=42.290425&destLon=-83.718150999999`); - const response2 = await axios.get(`${BASE_URL}/plan-journey?originLat=42.27389558&originLon=-83.73739576&destLat=42.29303061&destLon=-83.7163671?walkingPenalty=8`); + const response2 = await axios.get(`${BASE_URL}/plan-journey?originLat=42.27389558&originLon=-83.73739576&destLat=42.29303061&destLon=-83.7163671&walkingPenalty=8`); expect(response2.status).toBe(200); console.log('Path test 2:', JSON.stringify(response2.data, null, 2));