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

test: fix typo in test-cli-node-options.js #13558

Closed
wants to merge 1 commit into from
Closed

test: fix typo in test-cli-node-options.js #13558

wants to merge 1 commit into from

Conversation

vsemozhetbyt
Copy link
Contributor

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

test, cli

expect was probably a typo, as it is a function and will always be undefined as JSON.

The previous test() check infers it should be want.

cc @sam-github

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Jun 8, 2017
@vsemozhetbyt vsemozhetbyt added the cli Issues and PRs related to the Node.js command line interface. label Jun 8, 2017
@vsemozhetbyt
Copy link
Contributor Author

vsemozhetbyt commented Jun 8, 2017

CI: https://ci.nodejs.org/job/node-test-pull-request/8562/

Two fails seem unrelated.

opt, expect, stdout);
assert(false, `Expected ${expect}`);
opt, want, stdout);
assert(false, `Expected ${want}`);
Copy link
Member

Choose a reason for hiding this comment

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

While we're in here, maybe change this to assert.fail(...) instead of assert(false, ...)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

`expect` was probably a typo, as it is a function
and will always be `undefined` as JSON.

The previous `test()` check infers it should be `want`.
@vsemozhetbyt
Copy link
Contributor Author

assert(false, msg) -> assert.fail(msg)
New CI: https://ci.nodejs.org/job/node-test-pull-request/8564/

@vsemozhetbyt
Copy link
Contributor Author

Landed in 401a372

@vsemozhetbyt vsemozhetbyt deleted the test-cli-node-options.js branch June 12, 2017 09:16
vsemozhetbyt added a commit that referenced this pull request Jun 12, 2017
`expect` was probably a typo, as it is a function
and will always be `undefined` as JSON.

The previous `test()` check infers it should be `want`.

PR-URL: #13558
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
addaleax pushed a commit that referenced this pull request Jun 12, 2017
`expect` was probably a typo, as it is a function
and will always be `undefined` as JSON.

The previous `test()` check infers it should be `want`.

PR-URL: #13558
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@addaleax addaleax mentioned this pull request Jun 12, 2017
@gibfahn gibfahn mentioned this pull request Jun 15, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Issues and PRs related to the Node.js command line interface. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants