Visitar URL original
Refactor getTeams method & unit test to fix test suite by compumike08 · Pull Request #430 · github-tools/github · GitHub
The Wayback Machine - https://web.archive.org/web/20200920060619/https://github.com/github-tools/github/pull/430
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

Refactor getTeams method & unit test to fix test suite #430

Open
wants to merge 1 commit into
base: master
from

Conversation

@compumike08
Copy link

compumike08 commented Feb 27, 2017 •

I refactored the getTeams method in Organization.js to use the new _request method instead of the deprecated _requestAllPages method, and I refactored the associated unit test to use assetSuccessful and done(), instead of returning the output from a chained .then handler method.

After making these changes, two of the three unit tests which were failing are now passing. The one unit test which is still failing is not actually a problem with the unit tests themselves, but rather is being caused by the test harnesses inability to properly authenticate to GitHub.

@clayreimann
@mtscout6
@AurelioDeRosa
@alexcanessa

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

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.