Skip to content
This repository has been archived by the owner on Dec 20, 2020. It is now read-only.

Self is undefined #143

Open
robertervin opened this issue Aug 20, 2017 · 3 comments
Open

Self is undefined #143

robertervin opened this issue Aug 20, 2017 · 3 comments

Comments

@robertervin
Copy link

self is undefined at https://github.com/pyrsmk/qwest/blob/master/src/qwest.js#L5. It's throwing a ReferenceError when I try to run tests with no defined window.

@pyrsmk
Copy link
Owner

pyrsmk commented Aug 21, 2017

You're running tests in NPM? Because of XHR2, qwest is not meant to run in NPM. Instead you should mocking it.

@krazyjakee
Copy link

Please excuse my ignorance. If this only runs in a browser, what is the use case for self?

@pyrsmk
Copy link
Owner

pyrsmk commented Apr 5, 2018

For web workers ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants