UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

18 lines (14 loc) 346 B
import _ from 'lodash'; import sinon from '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; }; export default MockState;