Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow mocking of DOMParser #6

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

Merged
merged 3 commits into from
Dec 10, 2020
Merged

Allow mocking of DOMParser #6

merged 3 commits into from
Dec 10, 2020

Conversation

stevehof
Copy link

This change allows us to mock DOMParser by adding window.DOMParser since these are synonyms anywas there is no harm in doing this but allows us to create a class. AFAIK we do not use DOMParser at this time, however we will mock it with another package xmldom which we already use.

Normally we would have had to upgrade jsdom unfortunately that has code that requires babel plugins that are not available on v6. Upgrading babel is a whole-nother can-o-worms... As many of our packages are integrated with the version of babel.

@@ -80745,7 +80745,7 @@ assign(ChineseCalendar.prototype, {
var month = this.toChineseMonth(year, monthIndex);

var monthName = ['一月','二月','三月','四月','五月','六月',
'七月','八月','九月','十月','十一月','十二月'][month - 1];
'七月','八月','九月','十月','十一月','十��月'][month - 1];
Copy link

Choose a reason for hiding this comment

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

Another one

@dee42 dee42 merged commit 91939a7 into j5int:master Dec 10, 2020
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.

2 participants