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

#42: Issue with Animations Library #43

Merged
merged 1 commit into from Jan 28, 2019

Conversation

satanTime
Copy link
Member

Added more flexible way to detect system provides, which we shouldn't mock / replace.

@satanTime satanTime force-pushed the feature/ISSUE-42 branch 3 times, most recently from a1d30bf to 2b43c2f Compare January 27, 2019 12:45
if (typeof provide === 'function' && provide.name === 'ApplicationInitStatus') {
return undefined;
}
if (typeof provide === 'function' && provide.name === 'DomRendererFactory2') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you mind squashing the conditionals into one?

Suggested change
if (typeof provide === 'function' && provide.name === 'DomRendererFactory2') {
if (typeof provide === 'function' && ['ApplicationInitStatus', 'DomRendererFactory2', ' RendererFactory2'].includes(provide.name) {

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

Added more flexible way to detect system provides, which we shouldn't mock / replace.
@ike18t ike18t merged commit 39f3914 into help-me-mom:master Jan 28, 2019
@satanTime satanTime deleted the feature/ISSUE-42 branch February 11, 2019 14:48
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

2 participants