UNPKG

sinon

Version:

JavaScript test spies, stubs and mocks.

12 lines (9 loc) 206 B
"use strict"; function isRestorable(obj) { return ( typeof obj === "function" && typeof obj.restore === "function" && obj.restore.sinon ); } module.exports = isRestorable;