File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1557,9 +1557,10 @@ describe('hover info', function() {
1557
1557
Plotly . plot ( createGraphDiv ( ) , mockCopy . data , mockCopy . layout ) . then ( done ) ;
1558
1558
} ) ;
1559
1559
1560
- it ( 'should format labels according to a template string' , function ( ) {
1560
+ it ( 'should format labels according to a template string' , function ( done ) {
1561
1561
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 ( ) {
1563
1564
Fx . hover ( 'graph' , evt , 'xy' ) ;
1564
1565
1565
1566
var hoverTrace = gd . _hoverdata [ 0 ] ;
@@ -1573,7 +1574,9 @@ describe('hover info', function() {
1573
1574
nums : '$1.00' ,
1574
1575
axis : '0.388'
1575
1576
} ) ;
1576
- } ) ;
1577
+ } )
1578
+ . catch ( failTest )
1579
+ . then ( done ) ;
1577
1580
} ) ;
1578
1581
} ) ;
1579
1582
} ) ;
You can’t perform that action at this time.
0 commit comments