Skip to content
New issue

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

Move globals to getters to allow them to be mocked #153

Merged
merged 7 commits into from
Sep 8, 2019

Conversation

luxzeitlos
Copy link
Contributor

This will fix #151

index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

Also make sure that tests are passing.

@sindresorhus
Copy link
Owner

@luxferresum Friendly ping :)

@sindresorhus sindresorhus changed the title move globals to getters to allow overwrite. Move globals to getters to allow them to be mocked Aug 12, 2019
index.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not work when mocking window.fetch
4 participants