Skip to content

Commit 9207371

Browse files
blugavereMylesBorins
authored andcommitted
test: refactor test-require-resolve
* var => const * assert.equal() => assert.strictEqual() PR-URL: #10120 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 71ab88c commit 9207371

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/parallel/test-require-resolve.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
'use strict';
2-
var common = require('../common');
3-
var fixturesDir = common.fixturesDir;
4-
var assert = require('assert');
5-
var path = require('path');
2+
const common = require('../common');
3+
const fixturesDir = common.fixturesDir;
4+
const assert = require('assert');
5+
const path = require('path');
66

7-
assert.equal(
7+
assert.strictEqual(
88
path.join(__dirname, '../fixtures/a.js').toLowerCase(),
99
require.resolve('../fixtures/a').toLowerCase());
10-
assert.equal(
10+
assert.strictEqual(
1111
path.join(fixturesDir, 'a.js').toLowerCase(),
1212
require.resolve(path.join(fixturesDir, 'a')).toLowerCase());
13-
assert.equal(
13+
assert.strictEqual(
1414
path.join(fixturesDir, 'nested-index', 'one', 'index.js').toLowerCase(),
1515
require.resolve('../fixtures/nested-index/one').toLowerCase());
16-
assert.equal('path', require.resolve('path'));
16+
assert.strictEqual('path', require.resolve('path'));
1717

1818
console.log('ok');

0 commit comments

Comments
 (0)