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

38 lines (31 loc) 915 B
describe('renderbot', function () { var Renderbot; var expect = require('expect.js'); var ngMock = require('ngMock'); function init() { ngMock.module('kibana'); ngMock.inject(function (Private) { Renderbot = Private(require('ui/Vis/Renderbot')); }); } describe('API', function () { var vis; var $el; var renderbot; beforeEach(init); beforeEach(function () { vis = { hello: 'world' }; $el = 'element'; renderbot = new Renderbot(vis, $el); }); it('should have expected methods', function () { expect(renderbot).to.have.property('render'); expect(renderbot).to.have.property('destroy'); expect(renderbot).to.have.property('updateParams'); }); it('should throw if not implemented', function () { expect(renderbot.render).to.throwError(); expect(renderbot.destroy).to.throwError(); }); }); });