DEV: Update pretender and fake-xml-http-request (#13937)

We are still on a version of pretender since 2017
https://github.com/pretenderjs/pretender/releases/tag/v1.6.1

Since then many changes have been made, including adding support
for xhr.upload. Upgrading will let us write proper acceptance
tests for uppy, which uses XmlHTTPRequest internally including
xhr.upload.

Updates pretender to 3.4.7 and fake-xml-http-request to 2.1.2.

Note: There have been no breaking changes in the releases that would
affect us, mainly dropping support for old node versions.
This commit is contained in:
Martin Brennan
2021-08-05 08:23:01 +10:00
committed by GitHub
parent 17f28d4018
commit d8a0d2262c
7 changed files with 2341 additions and 925 deletions

View File

@ -188,7 +188,10 @@ def dependencies
source: 'qunit/qunit/qunit.js'
},
{
source: 'pretender/pretender.js'
source: 'pretender/dist/pretender.js'
},
{
source: 'fake-xml-http-request/fake_xml_http_request.js'
},
{
source: 'sinon/pkg/sinon.js'