fixing test

This commit is contained in:
ppisljar 2017-02-13 14:18:43 +01:00
parent 3d437e5335
commit b93c84dac3
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,6 @@ import expect from 'expect.js';
import ngMock from 'ng_mock';
import $ from 'jquery';
import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logstash_index_pattern';
import pointSeriesEditorHTML from 'plugins/kbn_vislib_vis_types/editors/point_series.html';
import LineVisTypeProvider from 'plugins/kbn_vislib_vis_types/line';
import VisProvider from 'ui/vis';
import AggConfigProvider from 'ui/vis/agg_config';
@ -47,7 +46,8 @@ describe('point series editor', function () {
$container = $(document.createElement('div'))
.appendTo('body');
// make the element
$elem = angular.element(pointSeriesEditorHTML);
$elem = angular.element('<div><vislib-series></vislib-series><vislib-value-axes>' +
'</vislib-value-axes><vislib-category-axis></vislib-category-axis></div>');
$container.append($elem);
// compile the html

View file

@ -219,7 +219,7 @@ export default function AxisFactory(Private) {
self.axisTitle.render(selection);
}
svg.call(self.adjustSize());
if (svg) svg.call(self.adjustSize());
};
}
}