Skip to content

Commit

Permalink
Name restore function on stubNonFunctionProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfcosta committed May 21, 2017
1 parent 91c376e commit dbefd45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinon/stub-non-function-property.js
Expand Up @@ -13,7 +13,7 @@ function stubNonFunctionProperty(object, property, value) {
object[property] = value;

return {
restore: function () {
restore: function restore() {
object[property] = original;
}
};
Expand Down

0 comments on commit dbefd45

Please sign in to comment.