Skip to content

Commit 120a2cc

Browse files
committed
updated serve-static test to allow for absolute paths (as returned by realpathSync)
1 parent 1fc4fb3 commit 120a2cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/serve-static.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('Serve Static Middleware', () => {
7373
expect(res.text).toBe('<h1>Hello Hono</h1>')
7474
expect(res.headers['content-type']).toBe('text/html; charset=utf-8')
7575
expect(res.headers['x-custom']).toMatch(
76-
/Found the file at test[\/\\]assets[\/\\]static[\/\\]index\.html$/
76+
/Found the file at .*test[\/\\]assets[\/\\]static[\/\\]index\.html$/
7777
)
7878
})
7979

0 commit comments

Comments
 (0)