load-module
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -39,2 +39,3 @@ 'use strict' | ||
} else { | ||
if (modulePath.startsWith('.')) modulePath = path.resolve(modulePath) | ||
const pathsToTry = [ | ||
@@ -41,0 +42,0 @@ modulePath, |
{ | ||
"name": "load-module", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "load-module", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/75lb/load-module.git", |
@@ -41,2 +41,8 @@ 'use strict' | ||
runner.test('loadModule: relative path to a dir', function () { | ||
const modulePath = path.resolve(__dirname, 'fixture/loadModule/some-module') | ||
const module = loadModule(modulePath) | ||
a.strictEqual(module.name, 'someModule') | ||
}) | ||
runner.test('loadModule: full module name', function () { | ||
@@ -43,0 +49,0 @@ const module = loadModule('array-back') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9548
167