diff options
author | Rich Trott <rtrott@gmail.com> | 2015-10-07 20:53:38 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2015-10-08 22:35:24 -0700 |
commit | 72c8a74b55d828d3482b61c80928777df1b3898e (patch) | |
tree | 55a8dbda5d557d4afddd7386fe776a26d4d1e725 /test/parallel/test-fs-realpath.js | |
parent | a1040f206506af0787f62740ec57a4c4a7541038 (diff) | |
download | android-node-v8-72c8a74b55d828d3482b61c80928777df1b3898e.tar.gz android-node-v8-72c8a74b55d828d3482b61c80928777df1b3898e.tar.bz2 android-node-v8-72c8a74b55d828d3482b61c80928777df1b3898e.zip |
test: remove common.inspect()
common.inspect() is just util.inspect(). common copies every property
from util but this is the only one that gets used and it only gets used
in three places. Well, four, but the fourth is removed in a pending PR.
This commit removes it. Subsequently, the "copy util to common"
part of `common` can be removed altogether.
PR-URL: https://github.com/nodejs/node/pull/3257
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Diffstat (limited to 'test/parallel/test-fs-realpath.js')
-rw-r--r-- | test/parallel/test-fs-realpath.js | 52 |
1 files changed, 9 insertions, 43 deletions
diff --git a/test/parallel/test-fs-realpath.js b/test/parallel/test-fs-realpath.js index fc2db16e10..12a4ce7b41 100644 --- a/test/parallel/test-fs-realpath.js +++ b/test/parallel/test-fs-realpath.js @@ -93,15 +93,9 @@ function test_simple_relative_symlink(callback) { unlink.push(t[0]); }); var result = fs.realpathSync(entry); - assert.equal(result, path.resolve(expected), - 'got ' + common.inspect(result) + ' expected ' + - common.inspect(expected)); + assert.equal(result, path.resolve(expected)); asynctest(fs.realpath, [entry], callback, function(err, result) { - assert.equal(result, path.resolve(expected), - 'got ' + - common.inspect(result) + - ' expected ' + - common.inspect(expected)); + assert.equal(result, path.resolve(expected)); }); } @@ -125,17 +119,9 @@ function test_simple_absolute_symlink(callback) { unlink.push(t[0]); }); var result = fs.realpathSync(entry); - assert.equal(result, path.resolve(expected), - 'got ' + - common.inspect(result) + - ' expected ' + - common.inspect(expected)); + assert.equal(result, path.resolve(expected)); asynctest(fs.realpath, [entry], callback, function(err, result) { - assert.equal(result, path.resolve(expected), - 'got ' + - common.inspect(result) + - ' expected ' + - common.inspect(expected)); + assert.equal(result, path.resolve(expected)); }); } @@ -163,11 +149,7 @@ function test_deep_relative_file_symlink(callback) { assert.equal(fs.realpathSync(entry), path.resolve(expected)); asynctest(fs.realpath, [entry], callback, function(err, result) { - assert.equal(result, path.resolve(expected), - 'got ' + - common.inspect(result) + - ' expected ' + - common.inspect(path.resolve(expected))); + assert.equal(result, path.resolve(expected)); }); } @@ -195,11 +177,7 @@ function test_deep_relative_dir_symlink(callback) { assert.equal(fs.realpathSync(entry), path.resolve(expected)); asynctest(fs.realpath, [entry], callback, function(err, result) { - assert.equal(result, path.resolve(expected), - 'got ' + - common.inspect(result) + - ' expected ' + - common.inspect(path.resolve(expected))); + assert.equal(result, path.resolve(expected)); }); } @@ -280,11 +258,7 @@ function test_relative_input_cwd(callback) { assert.equal(fs.realpathSync(entry), path.resolve(expected)); asynctest(fs.realpath, [entry], callback, function(err, result) { process.chdir(origcwd); - assert.equal(result, path.resolve(expected), - 'got ' + - common.inspect(result) + - ' expected ' + - common.inspect(path.resolve(expected))); + assert.equal(result, path.resolve(expected)); return true; }); } @@ -336,11 +310,7 @@ function test_deep_symlink_mix(callback) { var expected = tmpAbsDir + '/cycles/root.js'; assert.equal(fs.realpathSync(entry), path.resolve(expected)); asynctest(fs.realpath, [entry], callback, function(err, result) { - assert.equal(result, path.resolve(expected), - 'got ' + - common.inspect(result) + - ' expected ' + - common.inspect(path.resolve(expected))); + assert.equal(result, path.resolve(expected)); return true; }); } @@ -355,11 +325,7 @@ function test_non_symlinks(callback) { assert.equal(fs.realpathSync(entry), path.resolve(expected)); asynctest(fs.realpath, [entry], callback, function(err, result) { process.chdir(origcwd); - assert.equal(result, path.resolve(expected), - 'got ' + - common.inspect(result) + - ' expected ' + - common.inspect(path.resolve(expected))); + assert.equal(result, path.resolve(expected)); return true; }); } |