Skip to content

Commit

Permalink
Merge pull request #32 from d48/feature/update-readme-with-reset
Browse files Browse the repository at this point in the history
add reset in creating spies reference
  • Loading branch information
keithamus committed Jul 25, 2015
2 parents 3479728 + c15bfc4 commit abffaef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ var array = [ 1, 2, 3 ];
chai.spy.on(array, 'push');
array.push(5);

//and you can reset the object calls
array.push.reset();

//or you can create spy object
var object = chai.spy.object([ 'push', 'pop' ]);
object.push(5);
Expand Down

0 comments on commit abffaef

Please sign in to comment.