Skip to content

Commit bcb0ce9

Browse files
committed
add plotly_hover before calling hover in heatmap and contour tests
1 parent 17939fe commit bcb0ce9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/jasmine/tests/contour_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,13 @@ describe('contour hover', function() {
639639
afterAll(destroyGraphDiv);
640640

641641
it('should not display hover on missing data and hoverongaps is disabled', function() {
642-
var pt = _hover(gd, 10, 100)[0];
643-
644642
var hoverData;
645643
gd.on('plotly_hover', function(data) {
646644
hoverData = data;
647645
});
648646

647+
var pt = _hover(gd, 10, 100)[0];
648+
649649
expect(hoverData).toEqual(undefined);
650650
expect(pt).toEqual(undefined);
651651
});

test/jasmine/tests/heatmap_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -989,13 +989,13 @@ describe('heatmap hover', function() {
989989
afterAll(destroyGraphDiv);
990990

991991
it('should not display hover on missing data and hoverongaps is disabled', function() {
992-
var pt = _hover(gd, 10, 100)[0];
993-
994992
var hoverData;
995993
gd.on('plotly_hover', function(data) {
996994
hoverData = data;
997995
});
998996

997+
var pt = _hover(gd, 10, 100)[0];
998+
999999
expect(hoverData).toEqual(undefined);
10001000
expect(pt).toEqual(undefined);
10011001
});

0 commit comments

Comments
 (0)