Skip to content

Commit 7c37e98

Browse files
committed
fix typo and adjust test
1 parent 3deca0d commit 7c37e98

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/jasmine/tests/hover_label_test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -5345,7 +5345,7 @@ describe('hovermode: (x|y)unified', function() {
53455345
type: 'bar',
53465346
x: ['2000-01', '2000-02'],
53475347
y: [1, 2],
5348-
xhoverfrmat: '%b',
5348+
xhoverformat: '%b',
53495349
xperiod: 'M1'
53505350
},
53515351
{
@@ -5381,25 +5381,25 @@ describe('hovermode: (x|y)unified', function() {
53815381
]});
53825382

53835383
_hover(gd, { xpx: 100, ypx: 200 });
5384-
assertLabel({title: 'Jan 1, 2000', items: [
5384+
assertLabel({title: 'Jan', items: [
53855385
'bar : 1'
53865386
]});
53875387

53885388
_hover(gd, { xpx: 210, ypx: 200 });
53895389
assertLabel({title: 'Jan', items: [
5390-
'bar : (Jan 1, 2000, 1)',
5390+
'bar : 1',
53915391
'start : (Feb, 2)',
53925392
'end : 1',
53935393
]});
53945394

53955395
_hover(gd, { xpx: 360, ypx: 200 });
5396-
assertLabel({title: 'Feb 1, 2000', items: [
5396+
assertLabel({title: 'Feb', items: [
53975397
'bar : 2'
53985398
]});
53995399

54005400
_hover(gd, { xpx: 400, ypx: 200 });
54015401
assertLabel({title: 'Feb', items: [
5402-
'bar : (Feb 1, 2000, 2)',
5402+
'bar : 2',
54035403
'end : 2'
54045404
]});
54055405
})

0 commit comments

Comments
 (0)