FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: refactoring test-repl-tab-complete with common.mustCall by thefourtheye · Pull Request #2122 · nodejs/node · GitHub

/ node Public

test: refactoring test-repl-tab-complete with common.mustCall - #2122

Closed
thefourtheye wants to merge 1 commit into
nodejs:masterfrom
thefourtheye:refactor-repl-tab-complete-test-case
Closed

test: refactoring test-repl-tab-complete with common.mustCall#2122
thefourtheye wants to merge 1 commit into
nodejs:masterfrom
thefourtheye:refactor-repl-tab-complete-test-case

Conversation

Copy link
Copy Markdown
Contributor

The original test uses a variable to explicitly count how many times
the callback is invoked. This patch uses common.mustCall to track
if the callback is called or not. This would make the test more robust
as we don't explicitly hardcode the number of times to be called.

cc @cjihrig

The original test uses a variable to explicitly count how many times
the callback is invoked. This patch uses `common.mustCall` to track
if the callback is called or not. This would make the test more robust
as we don't explicitly hardcode the number of times to be called.

cjihrig commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

LGTM if the CI is happy.

Copy link
Copy Markdown
Contributor Author

@cjihrig Thanks :-) Can you please trigger a CI run?

cjihrig commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

mscdex added repl Issues and PRs related to the REPL subsystem. test Issues and PRs related to the tests. labels Jul 7, 2015

Copy link
Copy Markdown
Contributor Author

@cjihrig Looks like the failures are not because of this change. This test passes in all the environments :-)

cjihrig pushed a commit that referenced this pull request Jul 7, 2015
The original test uses a variable to explicitly count how many
times the callback is invoked. This patch uses common.mustCall()
to track if the callback is called or not. This makes the test
more robust, as we don't explicitly hardcode the number of times
to be called.

PR-URL: #2122
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

cjihrig commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

Thanks, landed in 180fd39.

cjihrig closed this Jul 7, 2015
thefourtheye deleted the refactor-repl-tab-complete-test-case branch July 7, 2015 16:17
mscdex pushed a commit to mscdex/io.js that referenced this pull request Jul 9, 2015
The original test uses a variable to explicitly count how many
times the callback is invoked. This patch uses common.mustCall()
to track if the callback is called or not. This makes the test
more robust, as we don't explicitly hardcode the number of times
to be called.

PR-URL: nodejs#2122
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

repl Issues and PRs related to the REPL subsystem. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL