Skip to content

Commit

Permalink
test: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed May 21, 2024
1 parent 33a0fbd commit 0667aec
Show file tree
Hide file tree
Showing 4 changed files with 756 additions and 756 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions mocks/api/routes/about/[name].ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { Hono } from 'hono'
const app = new Hono()

app.get('/', (c) => {
const name = c.req.param<'/:name'>('name')
const name = c.req.param('name')
return c.json({
path: `/about/${name}`,
})
})

app.get('/address', (c) => {
const name = c.req.param<'/:name'>('name')
const name = c.req.param('name')
return c.json({
path: `/about/${name}/address`,
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"@types/node": "^20.10.5",
"eslint": "^8.56.0",
"glob": "^10.3.10",
"hono": "^4.3.8",
"hono": "^4.3.9",
"np": "7.7.0",
"prettier": "^3.1.1",
"publint": "^0.2.7",
Expand Down
Loading

0 comments on commit 0667aec

Please sign in to comment.