File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ describe("aborts middleware execution when the matcher conditions don't match th
269
269
} )
270
270
expect (
271
271
response . headers . has ( 'x-hello-from-middleware-res' ) ,
272
- `does not match ${ path } ` ,
272
+ `should match ${ path } ` ,
273
273
) . toBeTruthy ( )
274
274
expect ( await response . text ( ) ) . toBe ( 'Hello from origin!' )
275
275
expect ( response . status ) . toBe ( 200 )
@@ -281,7 +281,10 @@ describe("aborts middleware execution when the matcher conditions don't match th
281
281
origin,
282
282
url : path ,
283
283
} )
284
- expect ( response . headers . has ( 'x-hello-from-middleware-res' ) , `does match ${ path } ` ) . toBeFalsy ( )
284
+ expect (
285
+ response . headers . has ( 'x-hello-from-middleware-res' ) ,
286
+ `should not match ${ path } ` ,
287
+ ) . toBeFalsy ( )
285
288
expect ( await response . text ( ) ) . toBe ( 'Hello from origin!' )
286
289
expect ( response . status ) . toBe ( 200 )
287
290
}
You can’t perform that action at this time.
0 commit comments