Skip to content

Commit

Permalink
Release 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Nov 26, 2012
1 parent 8ceb939 commit 12fb00b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

0.0.8 / 2012-11-27
==================

* add mm.datas(), mm.data(), mm.empty() mock methods

0.0.7 / 2012-11-26
==================

Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,24 @@ fs.readFile('/etc/hosts', 'utf8', function (err, content) {
});
```
### Mock `callback(null, data)`
```js
mm.data(fs, 'readFile', new Buffer('some content'));
```
### Mock `callback(null, null)`
```js
mm.empty(mysql, 'query');
```
### Mock `callback(null, data1, data2)`
```js
mm.datas(urllib, 'request', new Buffer('data'), { headers: { foo: 'bar' } });
```
### use `mm` just like [`muk`](https://github.com/fent/node-muk)
```js
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mm",
"version": "0.0.7",
"version": "0.0.8",
"description": "mock mate, mock http request, fs access and so on.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 12fb00b

Please sign in to comment.