File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1608,7 +1608,7 @@ describe('Test event data of interactions on a pie plot:', function() {
1608
1608
checkEventData ( futureData ) ;
1609
1609
} ) ;
1610
1610
1611
- it ( 'should not contain pointNumber if aggregating' , function ( ) {
1611
+ it ( 'should not contain pointNumber if aggregating' , function ( done ) {
1612
1612
var values = gd . data [ 0 ] . values ;
1613
1613
var labels = [ ] ;
1614
1614
for ( var i = 0 ; i < values . length ; i ++ ) labels . push ( i ) ;
@@ -1623,7 +1623,9 @@ describe('Test event data of interactions on a pie plot:', function() {
1623
1623
expect ( futureData . points [ 0 ] . pointNumber ) . toBeUndefined ( ) ;
1624
1624
expect ( futureData . points [ 0 ] . i ) . toBeUndefined ( ) ;
1625
1625
expect ( futureData . points [ 0 ] . pointNumbers ) . toEqual ( [ 4 , 9 ] ) ;
1626
- } ) ;
1626
+ } )
1627
+ . catch ( failTest )
1628
+ . then ( done ) ;
1627
1629
} ) ;
1628
1630
} ) ;
1629
1631
@@ -1699,12 +1701,14 @@ describe('Test event data of interactions on a pie plot:', function() {
1699
1701
expect ( futureData ) . toBe ( null ) ;
1700
1702
} ) ;
1701
1703
1702
- it ( 'should not emit a hover if hover is disabled' , function ( ) {
1704
+ it ( 'should not emit a hover if hover is disabled' , function ( done ) {
1703
1705
Plotly . relayout ( gd , 'hovermode' , false )
1704
1706
. then ( function ( ) {
1705
1707
mouseEvent ( 'mouseover' , pointPos [ 0 ] , pointPos [ 1 ] ) ;
1706
1708
expect ( futureData ) . toBe ( null ) ;
1707
- } ) ;
1709
+ } )
1710
+ . catch ( failTest )
1711
+ . then ( done ) ;
1708
1712
} ) ;
1709
1713
} ) ;
1710
1714
You can’t perform that action at this time.
0 commit comments