Skip to content

Commit

Permalink
add reset in creating spies reference
Browse files Browse the repository at this point in the history
  • Loading branch information
d48 committed Jul 25, 2015
1 parent 3479728 commit c15bfc4
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 c15bfc4

Please sign in to comment.