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

widgets: Increase node tests coverage to 100%. #9873

Merged
merged 3 commits into from Jul 3, 2018

Conversation

shubhamdhama
Copy link
Member

After this, I'll update node tests for voting_widget.

set_global('document', 'document-stub');

let narrow_deactivated_callback;
$(document).on = (selector, func) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure about this approach of capturing callback, but I had to do this since $(document).on is global in widetize.js

@shubhamdhama
Copy link
Member Author

shubhamdhama commented Jul 3, 2018

The reason I haven't enforced 100% coverage here is that this file is still in beta. So do we need to enforce 100%?
(also fixing failure)
I think I've got my answer 😄

@shubhamdhama shubhamdhama force-pushed the widgets-increase-coverage-100 branch from 0336865 to ab7777c Compare July 3, 2018 12:11
@showell
Copy link
Contributor

showell commented Jul 3, 2018

LGTM, ready to merge when build passes

@shubhamdhama shubhamdhama force-pushed the widgets-increase-coverage-100 branch from ab7777c to eb949fb Compare July 3, 2018 12:34
@showell showell merged commit b938523 into zulip:master Jul 3, 2018
@showell
Copy link
Contributor

showell commented Jul 3, 2018

merged, thanks @shubhamdhama!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants