Permalink
Browse files

Removed untested code

I'll create a failing test then add it back in
  • Loading branch information...
1 parent 28c2be6 commit d4a87d7822d007d90faecbbef38c3d50d3eb8524 @nathanmacinnes committed Jan 18, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/pretendr.js
View
@@ -13,7 +13,7 @@ PRETENDR.mock = function (obj, proto) {
// Give functions the required return value setting and expectations
mockAFunction = function (original) {
- var callCount,
+ var callCount = 0,
mockFn,
returnValues = [],
returnFunction;
@@ -33,8 +33,6 @@ PRETENDR.mock = function (obj, proto) {
return ret;
};
mockFn.setReturnValue = function () {
- // reset the call count, or things could get confusing for the user
- callCount = 0;
returnValues = arguments;
};
mockFn.setFunction = function (fn) {

0 comments on commit d4a87d7

Please sign in to comment.