Skip to content

Commit fb8d9ea

Browse files
committedJul 25, 2024·
test: update failure messages for clarity
1 parent da8215f commit fb8d9ea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎tests/integration/edge-handler.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ describe("aborts middleware execution when the matcher conditions don't match th
269269
})
270270
expect(
271271
response.headers.has('x-hello-from-middleware-res'),
272-
`does not match ${path}`,
272+
`should match ${path}`,
273273
).toBeTruthy()
274274
expect(await response.text()).toBe('Hello from origin!')
275275
expect(response.status).toBe(200)
@@ -281,7 +281,10 @@ describe("aborts middleware execution when the matcher conditions don't match th
281281
origin,
282282
url: path,
283283
})
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()
285288
expect(await response.text()).toBe('Hello from origin!')
286289
expect(response.status).toBe(200)
287290
}

0 commit comments

Comments
 (0)
Please sign in to comment.