mirror of https://github.com/lukechilds/node.git
Browse Source
* 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>v4.x
blugavere
8 years ago
committed by
Myles Borins
1 changed files with 8 additions and 8 deletions
@ -1,18 +1,18 @@ |
|||||
'use strict'; |
'use strict'; |
||||
var common = require('../common'); |
const common = require('../common'); |
||||
var fixturesDir = common.fixturesDir; |
const fixturesDir = common.fixturesDir; |
||||
var assert = require('assert'); |
const assert = require('assert'); |
||||
var path = require('path'); |
const path = require('path'); |
||||
|
|
||||
assert.equal( |
assert.strictEqual( |
||||
path.join(__dirname, '../fixtures/a.js').toLowerCase(), |
path.join(__dirname, '../fixtures/a.js').toLowerCase(), |
||||
require.resolve('../fixtures/a').toLowerCase()); |
require.resolve('../fixtures/a').toLowerCase()); |
||||
assert.equal( |
assert.strictEqual( |
||||
path.join(fixturesDir, 'a.js').toLowerCase(), |
path.join(fixturesDir, 'a.js').toLowerCase(), |
||||
require.resolve(path.join(fixturesDir, 'a')).toLowerCase()); |
require.resolve(path.join(fixturesDir, 'a')).toLowerCase()); |
||||
assert.equal( |
assert.strictEqual( |
||||
path.join(fixturesDir, 'nested-index', 'one', 'index.js').toLowerCase(), |
path.join(fixturesDir, 'nested-index', 'one', 'index.js').toLowerCase(), |
||||
require.resolve('../fixtures/nested-index/one').toLowerCase()); |
require.resolve('../fixtures/nested-index/one').toLowerCase()); |
||||
assert.equal('path', require.resolve('path')); |
assert.strictEqual('path', require.resolve('path')); |
||||
|
|
||||
console.log('ok'); |
console.log('ok'); |
||||
|
Loading…
Reference in new issue