proxyquire
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -105,3 +105,6 @@ 'use strict'; | ||
var require_super = module.require.bind(module); | ||
require_super.extensions = require.extensions; | ||
require_super.extensions[extname] = ext_super; | ||
require_super.main = process.mainModule; | ||
module.require = function (request) { | ||
@@ -108,0 +111,0 @@ // NOTE: This function is for requiring dependencies for the SUT |
{ | ||
"name": "proxyquire", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Proxies nodejs require in order to allow overriding dependencies during testing.", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/mit-license.php" | ||
"url": "https://github.com/thlorenz/proxyquire/blob/master/LICENSE" | ||
} | ||
@@ -27,0 +27,0 @@ ], |
/*jshint asi:true*/ | ||
/*global describe before beforeEach it */ | ||
/*global describe, before, beforeEach, it */ | ||
'use strict'; | ||
@@ -4,0 +4,0 @@ |
/*jshint asi:true*/ | ||
/*global describe before beforeEach it */ | ||
/*global describe, before, beforeEach, it */ | ||
"use strict"; | ||
@@ -4,0 +5,0 @@ |
'use strict'; | ||
/*jshint asi:true */ | ||
/*global describe before beforeEach it */ | ||
/*global describe, before, beforeEach, it */ | ||
var proxyquire = require('..').noCallThru() | ||
@@ -5,0 +6,0 @@ |
/*jshint asi:true*/ | ||
/*global describe before beforeEach it */ | ||
/*global describe, before, beforeEach, it */ | ||
"use strict"; | ||
@@ -4,0 +4,0 @@ |
'use strict'; | ||
/*jshint asi:true*/ | ||
/*global describe before beforeEach it */ | ||
/*global describe, before, beforeEach, it */ | ||
@@ -5,0 +5,0 @@ var assert = require('assert') |
/*jshint asi:true*/ | ||
/*global describe before beforeEach it */ | ||
/*global describe, before, beforeEach, it */ | ||
"use strict"; | ||
@@ -4,0 +4,0 @@ |
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
54088
50
1295