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

Remove src attribute on <img> to avoid failing with fetch not existing in JSDOM #344

Merged
merged 1 commit into from Nov 26, 2019

Conversation

humphd
Copy link
Contributor

@humphd humphd commented Nov 24, 2019

This fixes #343, removing the src attribute on the test case's <img> element, thus papering over the issue with DOMPurify/JSDOM and fetch() not being present.

Probably the right fix is to move to using Puppeteer and a full DOM in the future.

@humphd humphd requested a review from shmooey November 24, 2019 21:42
@manekenpix manekenpix self-requested a review November 25, 2019 22:01
Copy link
Contributor

@UltimaBGD UltimaBGD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving and getting merged ASAP so tests are reflected to be more accurate.

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.

Test Failure on master: TypeError: Cannot read property 'fetch' of null in test/sanitize-html.test.js
3 participants