File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ describe('Serve Static Middleware', () => {
6969 expect ( res . text ) . toBe ( '<h1>Hello Hono</h1>' )
7070 expect ( res . headers [ 'content-type' ] ) . toBe ( 'text/html; charset=utf-8' )
7171 expect ( res . headers [ 'x-custom' ] ) . toMatch (
72- / F o u n d t h e f i l e a t .* \/ t e s t \/ a s s e t s \/ s t a t i c \/ i n d e x \. h t m l $ /
72+ / F o u n d t h e f i l e a t .* [ \/ \\ ] t e s t [ \/ \\ ] a s s e t s [ \/ \\ ] s t a t i c [ \/ \\ ] i n d e x \. h t m l $ /
7373 )
7474 } )
7575
@@ -170,7 +170,7 @@ describe('Serve Static Middleware', () => {
170170 const res = await request ( server ) . get ( '/on-not-found/foo.txt' )
171171 expect ( res . status ) . toBe ( 404 )
172172 expect ( notFoundMessage ) . toMatch (
173- / .* \/ n o t - f o u n d \/ o n - n o t - f o u n d \/ f o o \. t x t i s n o t f o u n d , r e q u e s t t o \/ o n - n o t - f o u n d \/ f o o \. t x t $ /
173+ / .* [ \/ \\ ] n o t - f o u n d [ \/ \\ ] o n - n o t - f o u n d [ \/ \\ ] f o o \. t x t i s n o t f o u n d , r e q u e s t t o \/ o n - n o t - f o u n d \/ f o o \. t x t $ /
174174 )
175175 } )
176176
You can’t perform that action at this time.
0 commit comments