mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
adding tests for vislib/index.js
This commit is contained in:
parent
94c4b3b63d
commit
e3769896d4
2 changed files with 30 additions and 0 deletions
|
@ -97,6 +97,7 @@
|
|||
'specs/vislib/layout',
|
||||
'specs/vislib/_chart',
|
||||
'specs/vislib/column_layout',
|
||||
'specs/vislib/index',
|
||||
'specs/utils/diff_time_picker_vals',
|
||||
'specs/factories/events',
|
||||
'specs/index_patterns/_flatten_search_response',
|
||||
|
|
29
test/unit/specs/vislib/index.js
Normal file
29
test/unit/specs/vislib/index.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
define(function (require) {
|
||||
var _ = require('lodash');
|
||||
|
||||
var angular = require('angular');
|
||||
|
||||
angular.module('kibana/vislib', ['kibana']);
|
||||
|
||||
describe('VisLib Index Test Suite', function () {
|
||||
var chart;
|
||||
|
||||
beforeEach(function () {
|
||||
module('kibana/vislib');
|
||||
});
|
||||
|
||||
beforeEach(function () {
|
||||
inject(function (d3, visLib) {
|
||||
chart = visLib;
|
||||
});
|
||||
});
|
||||
|
||||
it('should return an object', function () {
|
||||
expect(_.isObject(chart)).to.be(true);
|
||||
});
|
||||
|
||||
it('should return a Vis function', function () {
|
||||
expect(_.isFunction(chart.Vis)).to.be(true);
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue