0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-24 19:26:56 +01:00

test(hono): not found handled by sub

This commit is contained in:
Douglas Duteil 2024-07-04 16:57:13 +02:00 committed by GitHub
parent 7ba58664e7
commit 785db4d63b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1958,7 +1958,7 @@ describe('Hono with `app.route`', () => {
const res = await app.request('https://example.com/sub/implicit-404')
expect(res.status).toBe(404)
expect(res.headers.get('explicit')).toBe(null)
expect(await res.text()).toBe('404 Not Found by app')
expect(await res.text()).toBe('404 Not Found by sub')
})
})
})