mirror of
https://github.com/github/codeql-action.git
synced 2026-01-02 12:40:21 +08:00
18 lines
367 B
JavaScript
18 lines
367 B
JavaScript
"use strict";
|
|
|
|
var walkObject = require("./util/core/walk-object");
|
|
|
|
function filter(object, property) {
|
|
return object[property].restore && object[property].restore.sinon;
|
|
}
|
|
|
|
function restore(object, property) {
|
|
object[property].restore();
|
|
}
|
|
|
|
function restoreObject(object) {
|
|
return walkObject(restore, object, filter);
|
|
}
|
|
|
|
module.exports = restoreObject;
|