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

test: test `sys` rather than `common` by Trott · Pull Request #3256 · nodejs/node · GitHub

/ node Public

test: test sys rather than common - #3256

Closed
Trott wants to merge 3 commits into
nodejs:masterfrom
Trott:test-util
Closed

test: test sys rather than common#3256
Trott wants to merge 3 commits into
nodejs:masterfrom
Trott:test-util

Conversation

Trott commented Oct 8, 2015

Copy link
Copy Markdown
Member

test-sys.js seems to test common.inspect() (which is test-specific code) and not sys (which, although deprecated, should still be tested).

This seems like it was introduced in 9fd5e3c which is a pretty big commit with lots of probable find/replace.

This commit changes it to test sys which is what the file name implies it should be doing.

Trott added the test Issues and PRs related to the tests. label Oct 8, 2015

targos commented Oct 8, 2015

Copy link
Copy Markdown
Member

Since sys is just the same as util, can't we just make sure that all the tests in this file are done in the test-util* files and then just remove everything and do assert.strictEqual(require('sys'), require('util')) ?

Copy link
Copy Markdown
Contributor

I'm with @targos on this. A lot of the tests are duplicated anyways

Trott commented Oct 9, 2015

Copy link
Copy Markdown
Member Author

OK, done, all sys tests moved to util and sys test replaced with a strictEqual() check that sys and util are the same thing.

Copy link
Copy Markdown
Contributor

LGTM

Trott commented Oct 9, 2015

Copy link
Copy Markdown
Member Author

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

Assuming CI is green, I'll land this in the next few hours unless someone objects.

Trott commented Oct 9, 2015

Copy link
Copy Markdown
Member Author

Well, that was embarrassing. Let's try this again. CI: https://ci.nodejs.org/job/node-test-pull-request/467/

Trott commented Oct 9, 2015

Copy link
Copy Markdown
Member Author

@evanlucas Very minor change to correct a test I botched. Still LGTY? /cc @targos

Copy link
Copy Markdown
Contributor

yep, LGTM

Trott added a commit that referenced this pull request Oct 9, 2015
test-sys.js tests common.inspect() (which is test-specific code) and not
sys (which, although deprecated, should still be tested).

This commit moves the tests to the not-deprecated util and adds a test
to check that deprecated sys and util are the same.

PR-URL: #3256
Reviewed-By: Evan Lucas <evanlucas@me.com>

Trott commented Oct 9, 2015

Copy link
Copy Markdown
Member Author

Landed in ead5cd9

Trott closed this Oct 9, 2015
Trott added a commit that referenced this pull request Oct 10, 2015
test-sys.js tests common.inspect() (which is test-specific code) and not
sys (which, although deprecated, should still be tested).

This commit moves the tests to the not-deprecated util and adds a test
to check that deprecated sys and util are the same.

PR-URL: #3256
Reviewed-By: Evan Lucas <evanlucas@me.com>

jasnell commented Oct 10, 2015

Copy link
Copy Markdown
Member

Landed in v4.x in 5ca4f6f

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

test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL