mock-require
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -7,2 +7,3 @@ 'use strict'; | ||
const resolve = require('path').resolve; | ||
const pathsep = require('path').sep; | ||
const getCallerFile = require('get-caller-file'); | ||
@@ -66,3 +67,3 @@ const normalize = require('normalize-path'); | ||
.map((nodePath) => { | ||
return resolve(process.cwd(), nodePath) + '/'; | ||
return resolve(process.cwd(), nodePath) + pathsep; | ||
}) | ||
@@ -69,0 +70,0 @@ .some((fullNodePath) => { |
{ | ||
"name": "mock-require", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Simple, intuitive mocking of Node.js modules.", | ||
@@ -14,2 +14,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"cross-env": "^5.2.0", | ||
"eslint": "^4.15.0", | ||
@@ -20,3 +21,3 @@ "mocha": "^4.1.0" | ||
"lint": "eslint .", | ||
"test": "NODE_PATH=test/node-path mocha ./test/runner" | ||
"test": "cross-env NODE_PATH=test/node-path mocha ./test/runner" | ||
}, | ||
@@ -23,0 +24,0 @@ "repository": { |
47889
281
3