From b8e90d7c957c4c11c7d6e946a8a1dd0d8533f206 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Tue, 27 Sep 2022 18:57:26 +0900 Subject: [PATCH] chore: bump up Hono v2.2.1 --- package.json | 2 +- test/server.test.ts | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 157cf6d..dc73e88 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@types/jest": "^29.0.1", "@types/node": "^18.7.16", "@types/supertest": "^2.0.12", - "hono": "^2.1.4", + "hono": "^2.2.1", "jest": "^29.0.3", "np": "^7.6.2", "rimraf": "^3.0.2", diff --git a/test/server.test.ts b/test/server.test.ts index 54a57ff..a8f963b 100644 --- a/test/server.test.ts +++ b/test/server.test.ts @@ -36,7 +36,7 @@ describe('Basic', () => { it('Should return 302 response - POST /posts', async () => { const res = await request(server).post('/posts') expect(res.status).toBe(302) - expect(res.headers['location']).toMatch(/.+\/posts$/) + expect(res.headers['location']).toBe('/posts') }) it('Should return 201 response - DELETE /posts/123', async () => { diff --git a/yarn.lock b/yarn.lock index d0169a2..9a3411a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2016,10 +2016,10 @@ hexoid@1.0.0: resolved "https://registry.yarnpkg.com/hexoid/-/hexoid-1.0.0.tgz#ad10c6573fb907de23d9ec63a711267d9dc9bc18" integrity sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g== -hono@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/hono/-/hono-2.1.4.tgz#fd9d47f1bbf1ead0b346225b6e17adad8a0ac129" - integrity sha512-x4mNdB7YoMBMHe8rDyXgKcAjK4/lerUY4PBaEYu+XCz1AilxtZAKLDtUer4ptaZ4T6RYreo5ksZuA3bQdOUEug== +hono@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/hono/-/hono-2.2.1.tgz#eafdc140cbc896977979820b6215f55c8753dfbd" + integrity sha512-tlawHM4uOMt41jibUF0fRYxUs3vibKzO1Ihuk/MohpUrkRc4fQo1n9+jLRKIC/8d0lLLW/CPWR/iItcf2HUv3A== hosted-git-info@^2.1.4: version "2.8.9"