Skip to content

Commit

Permalink
fix: README typo (#32)
Browse files Browse the repository at this point in the history
thx
  • Loading branch information
nightink authored and alsotang committed Mar 9, 2017
1 parent 8a79bbe commit 007f053
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -94,7 +94,7 @@ mm.data(fs, 'readFile', new Buffer('some content'));

// equals

fs.readFile = function (args..., callback) {
fs.readFile = function (...args, callback) {
callback(null, new Buffer('some content'))
};
```
Expand All @@ -106,7 +106,7 @@ mm.empty(mysql, 'query');

// equals

mysql.query = function (args..., callback) {
mysql.query = function (...args, callback) {
callback();
}
```
Expand All @@ -118,7 +118,7 @@ mm.datas(urllib, 'request', [new Buffer('data'), {headers: { foo: 'bar' }}]);

// equals

urllib.request = function (args..., callback) {
urllib.request = function (...args, callback) {
callback(null, new Buffer('data'), {headers: { foo: 'bar' }});
}
```
Expand All @@ -133,7 +133,7 @@ mm.syncError(fs, 'readFileSync', 'mock fs.readFile return error', {code: 'ENOENT

// equals

fs.readFileSync = function (args...) {
fs.readFileSync = function (...args) {
var err = new Error('mock fs.readFile return error');
err.code = 'ENOENT';
throw err;
Expand All @@ -148,7 +148,7 @@ mm.syncData(fs, 'readFileSync', new Buffer('some content'));

// equals

fs.readFileSync = function (args...) {
fs.readFileSync = function (...args) {
return new Buffer('some content');
};
```
Expand All @@ -160,7 +160,7 @@ mm.syncEmpty(fs, 'readFileSync');

// equals

fs.readFileSync = function (args...) {
fs.readFileSync = function (...args) {
return;
}
```
Expand Down

0 comments on commit 007f053

Please sign in to comment.