Skip to content

Commit

Permalink
test: refactor test-require-resolve
Browse files Browse the repository at this point in the history
* var => const
* assert.equal() => assert.strictEqual()

PR-URL: #10120
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
blugavere authored and Trott committed Dec 6, 2016
1 parent b91ca7d commit 2df3fd9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/parallel/test-require-resolve.js
Original file line number Diff line number Diff line change
@@ -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');

0 comments on commit 2df3fd9

Please sign in to comment.