mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
8f56958658
In preparation for a lint rule enforcing function argument alignment, adjust function arguments to be aligned. PR-URL: https://github.com/nodejs/node/pull/6390 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Imran Iqbal <imran@imraniqbal.org> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
11 lines
355 B
JavaScript
11 lines
355 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const _module = require('module'); // avoid collision with global.module
|
|
const lookupResults = _module._resolveLookupPaths('./lodash');
|
|
const paths = lookupResults[1];
|
|
|
|
assert.strictEqual(paths[0], '.',
|
|
'Current directory gets highest priority for local modules');
|