Skip to content
Myr

tests: Fix test case of handlers without a path (#4472)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by IAmSSH · committed by GitHub · parent db764c2 · Browse files · 1 file+3 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−4 removed

  • tests:+3 added−4 removed

1 file+3 added−4 removed

modified:src/hono.test.ts+3 added-4 removed
246 unmodified lines
247 expect(res.status).toBe(200)248 expect(await res.text()).toBe('Hello')249 })250251 it('GET http://localhost/anything is ok', async () => {252 const res = await app.request('/')253 expect(res.status).toBe(200)254 expect(await res.text()).toBe('Hello')251 it('GET http://localhost/anything is not found', async () => {252 const res = await app.request('/anything')253 expect(res.status).toBe(404)254 })255 })256257 describe('With specifying basePath', () => {
3416 unmodified lines