UNPKG

@spalger/kibana

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

19 lines (15 loc) 371 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(); _.assign(this, defaults); } MockState.prototype.resetStub = function () { this.save = sinon.stub(); return this; }; return MockState; });