-
Notifications
You must be signed in to change notification settings - Fork 3k
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(root): find global context (window/self/global) in a more safe way #1933
Conversation
ugh...remove code and even add one test and coverage goes down...wtf.. |
Seems coveralls complaining about missing coverage of throwing out if https://coveralls.io/builds/7822965/source?filename=src%2Futil%2Froot.ts#L24 |
I can remove it....but it seems stupid to do so just to get coveralls from complaining. Thoughts or workarounds? |
For this case I'd rather allow coverage decreasing. Thought way to test those cases bit, but wasn't able to find easy way to create legit coverage. |
LGTM |
@kwonoj planning to merge or waiting for others to chime in? |
@jayphelps sorry, just too busy with new hire orientation all day long. Merged. :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #1930
Unfortunately this isn't something we can really unit test AFAIK. It's pretty meta.
The
objectTypes
stuffs appeared to be a left over from earlier refactors cause none of these should ever be a function.