mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Change tests to return a string instead of the input object
This commit is contained in:
parent
9f6ac49ec0
commit
44cb38e050
1 changed files with 2 additions and 2 deletions
|
@ -312,12 +312,12 @@ define(function (require) {
|
|||
it('should create a .leaflet-popup-kibana div for the tooltip', function () {
|
||||
vis.handler.charts.forEach(function (chart) {
|
||||
chart.tooltipFormatter = function (str) {
|
||||
return str;
|
||||
return '<div class="popup-stub"></div>';
|
||||
};
|
||||
var layerIds = _.keys(map._layers);
|
||||
var id = layerIds[_.random(1, layerIds.length - 1)]; // layer 0 is tileLayer
|
||||
map._layers[id].fire('mouseover');
|
||||
expect($(vis.el).find('.leaflet-popup-kibana').length).to.be(1);
|
||||
expect($('.popup-stub', vis.el).length).to.be(1);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue