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

fix(axe.run): allow returning a Promise in jsdom #943

Merged
merged 1 commit into from
Jun 7, 2018

Conversation

stephenmathieson
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

Description of the changes

This patch enables axe.run() to return a Promise when window.Promise is not defined, but there is a Promise implementation in the global scope.

This, while very edge-casey, enables me to run axe in a node process by only importing jsdom-global/register.

  • Github issue:

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This patch enables `axe.run()` to return a Promise when `window.Promise` is not defined, but there is a Promise implementation in the global scope.

This, while very edge-casey, enables me to run axe in a node process by only importing [`jsdom-global/register`](https://github.com/rstacruz/jsdom-global).
@WilcoFiers WilcoFiers merged commit 3858a1f into develop Jun 7, 2018
@stephenmathieson stephenmathieson deleted the fix-global-promise branch June 7, 2018 13:42
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.

3 participants