Permalink
Browse files

make docs match

  • Loading branch information...
1 parent 3d4da60 commit fb2088e84917723787d104d26fee69b612e3ad21 @nathanielksmith committed Sep 3, 2012
Showing with 5 additions and 7 deletions.
  1. +4 −6 README.md
  2. +1 −1 package.json
View
@@ -42,16 +42,14 @@ experimentation until further notice.
## just make a watched function
- var f = function() {};
- var mf = new Mock.MockFunction(f);
-
- mf();
- mf.called; // true
+ var mockf = Mock.create_func({return_value:5});
+ mockf(): // 5
+ mockf.called // true
// etc
## create a nested structure
- var nested = Mock.create_nested_mock({}, ['hi', 'there', 'how', 'are', 'you']);
+ var nested = Mock.create_nested_obj({}, ['hi', 'there', 'how', 'are', 'you']);
nested.hi.there.how.are.you = 'hi';
## author
View
@@ -1,6 +1,6 @@
{
"name": "akeley",
- "version": "0.3.0",
+ "version": "0.3.1",
"author": "nathaniel k smith <nathanielksmith@gmail.com>",
"description": "a mocking utility library",
"main": "./lib/akeley",

0 comments on commit fb2088e

Please sign in to comment.