jameslnewell / xhr-mock

Utility for mocking XMLHttpRequest.
196 stars 48 forks source link

Add XMLHttpRequestUpload support #26

Closed snstanton closed 7 years ago

snstanton commented 7 years ago
jameslnewell commented 7 years ago

I've merged this into v2 (WIP).

joscha commented 7 years ago

@jameslnewell any chance we could get these changes in a release, so we can use xhr.upload.addEventListener ?

jameslnewell commented 7 years ago

@joscha I've fixed the last few red tests and released a preview release of v2 (xhr-mock@next or xhr-mock@2.0.0-preview.1). There's a few TODO/FIXME items left in order to get complete compliance with the spec, but v2 should already be much more compliant than v1. If you could start using/testing v2 for me, I'll release it after a couple weeks of no bugs being reported.

Thanks for your patience.

joscha commented 7 years ago

Thanks @jameslnewell

itsjamie commented 6 years ago

@jameslnewell can you publish with the lib folder for the preview build? Currently the "lib" folder doesn't exist in the npm package that is published at xhr-mock@next.

jameslnewell commented 6 years ago

@itsjamie Sorry! Try xhr-mock@2.0.0-preview.2.

/cc @joscha