()
| 4 | |
| 5 | class MockXMLHttpRequest { |
| 6 | constructor() { |
| 7 | this.requestHeaders = {}; |
| 8 | this.responseHeaders = ''; |
| 9 | this.readyState = 0; |
| 10 | this.status = 0; |
| 11 | this.statusText = ''; |
| 12 | this.responseText = ''; |
| 13 | this.response = null; |
| 14 | this.onreadystatechange = null; |
| 15 | this.onloadend = null; |
| 16 | this.upload = { |
| 17 | addEventListener() {}, |
| 18 | }; |
| 19 | } |
| 20 | |
| 21 | open(method, url, async = true) { |
| 22 | this.method = method; |
nothing calls this directly
no outgoing calls
no test coverage detected