We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94e69b commit 26d1bf0Copy full SHA for 26d1bf0
mock/index.js
@@ -11,7 +11,10 @@ export function mockXHR() {
11
Mock.XHR.prototype.send = function() {
12
if (this.custom.xhr) {
13
this.custom.xhr.withCredentials = this.withCredentials || false
14
- this.custom.xhr.responseType = this.responseType
+
15
+ if (this.responseType) {
16
+ this.custom.xhr.responseType = this.responseType
17
+ }
18
}
19
this.proxy_send(...arguments)
20
0 commit comments