Skip to content

Commit abf3a55

Browse files
committed
improve test for spikelines
1 parent dc704ae commit abf3a55

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/jasmine/tests/hover_label_test.js

+10
Original file line numberDiff line numberDiff line change
@@ -4103,6 +4103,16 @@ describe('hovermode: (x|y)unified', function() {
41034103
};
41044104
Plotly.newPlot(gd, mockCopy)
41054105
.then(function(gd) {
4106+
expect(gd._fullLayout.hovermode).toBe('y unified');
4107+
var ax = gd._fullLayout.yaxis;
4108+
expect(ax.showspike).toBeTrue;
4109+
expect(ax.spikemode).toBe('across');
4110+
expect(ax.spikethickness).toBe(1.5);
4111+
expect(ax.spikedash).toBe('dot');
4112+
expect(ax.spikecolor).toBe('#444');
4113+
expect(ax.spikesnap).toBe('hovered data');
4114+
expect(gd._fullLayout.xaxis.showspike).toBeFalse;
4115+
41064116
_hover(gd, { yval: 6 });
41074117

41084118
assertLabel({title: '6', items: ['trace 0 : 2', 'trace 1 : 5']});

0 commit comments

Comments
 (0)