You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should work with form data',async()=>{constformData=newFormData();formData.append('some','test');constrequest=newRequest('http://foo.bar/baz',{method: 'post',body: formData});constformDataFromRequest=awaitrequest.formData();expect(formDataFromRequest).toBe(formDataFromRequest);});
Actual Behavior
TypeError: request.formData is not a function
Expected behavior
test should succeed
Additional context
We start to migrate a project to remix and to implement the action/loader unit tests where we need to construct Requests manually and pass them the form data.
The text was updated successfully, but these errors were encountered:
Describe the bug
The method
formData()
is missing at Request interface and its implementation.https://developer.mozilla.org/en-US/docs/Web/API/Request/formData
To Reproduce
Actual Behavior
Expected behavior
test should succeed
Additional context
We start to migrate a project to remix and to implement the action/loader unit tests where we need to construct
Request
s manually and pass them the form data.The text was updated successfully, but these errors were encountered: