-
Notifications
You must be signed in to change notification settings - Fork 10k
Closed
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:workersRelated to Workers productRelated to Workers product
Description
Existing documentation URL(s)
- https://developers.cloudflare.com/workers/testing/vitest-integration/write-your-first-test/#unit-tests
- https://developers.cloudflare.com/workers/testing/vitest-integration/write-your-first-test/#integration-tests
What changes are you suggesting?
Both code examples have a await on the response.status
//....
expect(await response.status).toBe(404); //<- here
expect(await response.text()).toBe("Not found");
//...the status in the response is an unsigned short value, so the await on the response.status can be removed
Additional information
No response
Metadata
Metadata
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:workersRelated to Workers productRelated to Workers product