Use distinct variable name within test case

In order to increase the clarity of generated output, select a name for
the test case variable that is not also used by a test template.
This commit is contained in:
Mike Pennisi 2016-04-28 11:21:07 -04:00
parent 95b5b13c16
commit b7d496942a

View File

@ -26,11 +26,11 @@ info: |
//- setup
var iter = {};
iter[Symbol.iterator] = function() {
var callCount = 0;
var nextCount = 0;
return {
next: function() {
callCount += 1;
return { done: callCount === 3, value: callCount };
nextCount += 1;
return { done: nextCount === 3, value: nextCount };
}
};
};