We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
D-Pow/mock-requests#15
global.fetch = require('node-fetch'); global.Headers = fetch.Headers; global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; MR = require('mock-requests'); global.axios = require('axios'); MR.setMockUrlResponse('http://localhost:1111/t', { mockExample: 1 }); axios.get('http://localhost:1111/t').then(resp => console.log(resp)); // Error "Cannot read property 'headers' of undefined" // at exports.XMLHttpRequest.getAllResponseHeaders at node_modules/xmlhttprequest/lib/XMLHttpRequest.js:239`
The text was updated successfully, but these errors were encountered:
driverdan#190 fix "Cannot read property 'headers' of undefined"
f52711f
Pull request: #191
Sorry, something went wrong.
No branches or pull requests
D-Pow/mock-requests#15
The text was updated successfully, but these errors were encountered: