Skip to content

Commit dbefd45

Browse files
committed
Name restore function on stubNonFunctionProperty
1 parent 91c376e commit dbefd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sinon/stub-non-function-property.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function stubNonFunctionProperty(object, property, value) {
1313
object[property] = value;
1414

1515
return {
16-
restore: function () {
16+
restore: function restore() {
1717
object[property] = original;
1818
}
1919
};

0 commit comments

Comments
 (0)