UNPKG

kibana-with-account

Version:

kibana-with-account is develop based kibana project

20 lines (16 loc) 404 B
define(function (require) { var _ = require('lodash'); var sinon = require('auto-release-sinon'); function MockState(defaults) { this.on = _.noop; this.off = _.noop; this.save = sinon.stub(); this.replace = sinon.stub(); _.assign(this, defaults); } MockState.prototype.resetStub = function () { this.save = sinon.stub(); return this; }; return MockState; });