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

feat(mock-doc): add NodeList #1614

Merged

Conversation

miguelyoobic95
Copy link
Contributor

Customer needs to have NodeList on MockWindow.

The customer's tests fail when they try to test a Stencil component that itself uses tippy.js. Here is where it is failing with a ReferenceError because NodeList is not found, so that is essentially what I am trying to duplicate in the test w/o actually including tippy.js.

Here is the LOC in tippy.js that results in the failure in the Stencil component unit test:

https://github.com/atomiks/tippyjs/blob/8b23e4a51452b89ca9a54731bb499eac4cc2920e/src/ponyfills.ts#L3

This PR adds NodeList to MockWindow in order to facilitate these tests.

@kensodemann kensodemann merged commit ee3fdf9 into ionic-team:master Jun 29, 2019
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.

None yet

3 participants