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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normally in browser when headers are received status is received too, but in this package status is 0:
xhrMock.setup(); xhrMock.get('/endpoint', { status: 200 }); const xhr = new XMLHttpRequest(); xhr.open('GET', '/endpoint', true); xhr.send(); xhr.onreadystatechange = () => { if (xhr.readyState === 2) { console.log(xhr.status); // outputs: 0 } };
I think it should already return passed status.
The text was updated successfully, but these errors were encountered:
I'm having the same issue!
Sorry, something went wrong.
No branches or pull requests
Normally in browser when headers are received status is received too, but in this package status is 0:
I think it should already return passed status.
The text was updated successfully, but these errors were encountered: