Comparing version 0.0.3 to 0.0.4
0.0.4 / 2012-11-13 | ||
================== | ||
* add mm() just like muk() does | ||
0.0.3 / 2012-11-06 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -17,2 +17,6 @@ /*! | ||
exports = module.exports = function mock(obj, key, method) { | ||
return muk.apply(null, arguments); | ||
}; | ||
/** | ||
@@ -19,0 +23,0 @@ * Mock async function error. |
{ | ||
"name": "mm", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "mock mate, mock http request, fs access and so on.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -89,2 +89,13 @@ mm (美眉,Mock伴侣) [![Build Status](https://secure.travis-ci.org/fengmk2/mm.png)](http://travis-ci.org/fengmk2/mm) | ||
### use `mm` just like [`muk`](https://github.com/fent/node-muk) | ||
```js | ||
var fs = require('fs'); | ||
var mm = require('mm'); | ||
mm(fs, 'readFile', function (path, callback) { | ||
process.nextTick(callback.bind(null, null, 'file contents here')); | ||
}); | ||
``` | ||
## License | ||
@@ -91,0 +102,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
10197
178
123