mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
move visLibParams into the beforeEach scope
This commit is contained in:
parent
e5ae2db9ee
commit
012e114330
1 changed files with 7 additions and 6 deletions
|
@ -28,18 +28,19 @@ define(function (require) {
|
|||
|
||||
describe('VisLib Line Chart Test Suite for ' + name + ' Data', function () {
|
||||
var vis;
|
||||
var visLibParams = {
|
||||
type: 'line',
|
||||
addLegend: true,
|
||||
addTooltip: true,
|
||||
drawLinesBetweenPoints: true
|
||||
};
|
||||
|
||||
beforeEach(function () {
|
||||
module('LineChartFactory');
|
||||
});
|
||||
|
||||
beforeEach(function () {
|
||||
var visLibParams = {
|
||||
type: 'line',
|
||||
addLegend: true,
|
||||
addTooltip: true,
|
||||
drawLinesBetweenPoints: true
|
||||
};
|
||||
|
||||
inject(function (Private) {
|
||||
vis = Private(require('vislib_fixtures/_vis_fixture'))(visLibParams);
|
||||
require('css!components/vislib/styles/main');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue