move visLibParams into the beforeEach scope
This commit is contained in:
parent
e5ae2db9ee
commit
012e114330
|
@ -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…
Reference in a new issue