Skip to content

Conversation

@jrmann100
Copy link
Contributor

Summary

  • Fixes error caused in 0c1d2b9, by which Response.error().ok === true where it should be false because Response.error().status < 200.
  • Adds test assertion

Explanation

Response.error internally constructs a valid Response and overwrites properties as necessary.

Now that Response must be constructed with a valid status, the constructed Response will be ok, so this property needs to be overwritten as well.

@jrmann100 jrmann100 force-pushed the response-error-is-not-ok branch from f993acb to 883299c Compare December 11, 2023 19:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants