mirror of
https://github.com/honojs/hono.git
synced 2024-11-21 18:18:57 +01:00
test(deno): remove duplicated app.get (#3469)
This commit is contained in:
parent
f1ec415be0
commit
c0d782cd64
@ -97,14 +97,6 @@ Deno.test('Serve Static middleware', async () => {
|
||||
|
||||
app.get('/static-absolute-root/*', serveStatic({ root: dirname(fromFileUrl(import.meta.url)) }))
|
||||
|
||||
app.get(
|
||||
'/static/*',
|
||||
serveStatic({
|
||||
root: './runtime-tests/deno',
|
||||
onNotFound,
|
||||
})
|
||||
)
|
||||
|
||||
let res = await app.request('http://localhost/favicon.ico')
|
||||
assertEquals(res.status, 200)
|
||||
assertEquals(res.headers.get('Content-Type'), 'image/x-icon')
|
||||
|
Loading…
Reference in New Issue
Block a user