require-inject
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -0,1 +1,15 @@ | ||
# Change Log | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
<a name="1.4.4"></a> | ||
## [1.4.4](https://github.com/iarna/require-inject/compare/v1.4.3...v1.4.4) (2018-12-25) | ||
### Bug Fixes | ||
* **loaded:** Ensure mocked module’s loaded state is set. ([#17](https://github.com/iarna/require-inject/issues/17)) ([25cac11](https://github.com/iarna/require-inject/commit/25cac11)) | ||
## v1.4.3 (2018-05-04) | ||
@@ -51,2 +65,1 @@ | ||
wasn't working as intended. | ||
@@ -81,2 +81,3 @@ 'use strict' | ||
mod.exports = mocks[name] | ||
mod.loaded = true | ||
mod.parent = old ? old.parent : parent | ||
@@ -83,0 +84,0 @@ require.cache[namePath] = mod |
{ | ||
"name": "require-inject", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "A simple mock injector compatible needing no instrumentation in the libraries being tested", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "standard && tap test/*.js" | ||
"pretest": "standard", | ||
"test": "tap test/*.js", | ||
"prerelease": "npm t", | ||
"release": "standard-version -s", | ||
"postrelease": "npm publish && git push --follow-tags", | ||
"update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'", | ||
"update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'" | ||
}, | ||
@@ -24,4 +30,7 @@ "author": "Rebecca Turner <me@re-becca.org> (http://re-becca.org)", | ||
"standard": "^7.1.2", | ||
"standard-version": "*", | ||
"tacks": "1.0.11", | ||
"tap": "^2.2.0" | ||
"tap": "^12.1.1", | ||
"weallbehave": "*", | ||
"weallcontribute": "*" | ||
}, | ||
@@ -33,3 +42,5 @@ "dependencies": { | ||
"index.js" | ||
] | ||
], | ||
"bugs": "https://github.com/iarna/require-inject/issues", | ||
"homepage": "https://npmjs.com/package/require-inject" | ||
} |
@@ -11,3 +11,3 @@ require-inject | ||
var mymod = requireInject('mymod', { | ||
'fs' => { | ||
'fs': { | ||
stat: function (file,cb) { | ||
@@ -14,0 +14,0 @@ switch (file) { |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
12312
6
77
0
6