Skip to content

Commit a86327a

Browse files
committed
fix hovertemplate test not being run
1 parent dd62855 commit a86327a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/jasmine/tests/hover_label_test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,9 +1557,10 @@ describe('hover info', function() {
15571557
Plotly.plot(createGraphDiv(), mockCopy.data, mockCopy.layout).then(done);
15581558
});
15591559

1560-
it('should format labels according to a template string', function() {
1560+
it('should format labels according to a template string', function(done) {
15611561
var gd = document.getElementById('graph');
1562-
Plotly.restyle(gd, 'data[0].hovertemplate', '%{y:$.2f}').then(function() {
1562+
Plotly.restyle(gd, 'hovertemplate', '%{y:$.2f}')
1563+
.then(function() {
15631564
Fx.hover('graph', evt, 'xy');
15641565

15651566
var hoverTrace = gd._hoverdata[0];
@@ -1573,7 +1574,9 @@ describe('hover info', function() {
15731574
nums: '$1.00',
15741575
axis: '0.388'
15751576
});
1576-
});
1577+
})
1578+
.catch(failTest)
1579+
.then(done);
15771580
});
15781581
});
15791582
});

0 commit comments

Comments
 (0)