Comparing version 0.6.8 to 0.6.9
@@ -15,3 +15,3 @@ { | ||
"..": { | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"integrity": "sha512-L3/bDHWjHm9zdG0Aqj7lhmp6Q5RFjXeitO9CGzWKP83d6BlGS0lLo9oswxgq62gwuIF7apT9tO0dw9kNuvb9eg==", | ||
@@ -18,0 +18,0 @@ "dev": true, |
@@ -74,3 +74,3 @@ var Module = require('module') | ||
var absolutePath = absolutePathFor(relativePath, parentFileName) | ||
var resolvedPath = nodeResolve(absolutePath) | ||
var resolvedPath = nodeResolve(absolutePath, { basedir: path.dirname(parentFileName) }) | ||
return resolvedPath || absolutePath | ||
@@ -196,5 +196,5 @@ } | ||
var nodeResolve = function (request) { | ||
var nodeResolve = function (request, options) { | ||
try { | ||
return resolve.sync(request) | ||
return resolve.sync(request, options) | ||
} catch (e) {} | ||
@@ -201,0 +201,0 @@ } |
{ | ||
"name": "quibble", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"description": "Makes it easy to replace require'd dependencies.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/testdouble/quibble", |
@@ -124,2 +124,8 @@ const quibble = require('../../lib/quibble') | ||
}, | ||
'requiring-a-node-module': function () { | ||
quibble('./some-other-thing') | ||
const quibbledRequiresANodeModule = require('../fixtures/requires-a-node-module') | ||
assert.equal(quibbledRequiresANodeModule(), false) | ||
}, | ||
afterEach: function () { | ||
@@ -126,0 +132,0 @@ quibble.reset() |
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
215496
49
5049