'use strict'; const sinon = require('sinon'); module.exports = () => ({ _resetSpies() { for (let p in this) { if (this.hasOwnProperty(p) && p !== '_resetSpies') { this[p].reset(); } } }, guid: sinon.stub().returns('testguid'), purgeCache: sinon.spy(), });