You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
294 B

'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(),
});