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: nodejs#10120
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
blugavere authored and Jonathan Darling committed Dec 8, 2016
1 parent 1b78c26 commit 536be1c
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 536be1c

Please sign in to comment.