summaryrefslogtreecommitdiff
path: root/test/parallel/test-require-resolve.js
diff options
context:
space:
mode:
authorblugavere <b.lugavere@gmail.com>2016-12-05 00:03:15 -0500
committerRich Trott <rtrott@gmail.com>2016-12-05 21:57:16 -0800
commit2df3fd9856afd9c320e3cc075ea54db17cec9a21 (patch)
treefb19770694cf2b07c2ce39b237ccddf57185b06b /test/parallel/test-require-resolve.js
parentb91ca7d108e290a62f8999dc8b742b39e3e6a254 (diff)
downloadandroid-node-v8-2df3fd9856afd9c320e3cc075ea54db17cec9a21.tar.gz
android-node-v8-2df3fd9856afd9c320e3cc075ea54db17cec9a21.tar.bz2
android-node-v8-2df3fd9856afd9c320e3cc075ea54db17cec9a21.zip
test: refactor test-require-resolve
* var => const * assert.equal() => assert.strictEqual() PR-URL: https://github.com/nodejs/node/pull/10120 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-require-resolve.js')
-rw-r--r--test/parallel/test-require-resolve.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/parallel/test-require-resolve.js b/test/parallel/test-require-resolve.js
index 13897c74da..202f3c5ef8 100644
--- a/test/parallel/test-require-resolve.js
+++ b/test/parallel/test-require-resolve.js
@@ -1,18 +1,18 @@
'use strict';
-var common = require('../common');
-var fixturesDir = common.fixturesDir;
-var assert = require('assert');
-var path = require('path');
+const common = require('../common');
+const fixturesDir = common.fixturesDir;
+const assert = require('assert');
+const path = require('path');
-assert.equal(
+assert.strictEqual(
path.join(__dirname, '../fixtures/a.js').toLowerCase(),
require.resolve('../fixtures/a').toLowerCase());
-assert.equal(
+assert.strictEqual(
path.join(fixturesDir, 'a.js').toLowerCase(),
require.resolve(path.join(fixturesDir, 'a')).toLowerCase());
-assert.equal(
+assert.strictEqual(
path.join(fixturesDir, 'nested-index', 'one', 'index.js').toLowerCase(),
require.resolve('../fixtures/nested-index/one').toLowerCase());
-assert.equal('path', require.resolve('path'));
+assert.strictEqual('path', require.resolve('path'));
console.log('ok');