@@ -881,14 +881,14 @@ describe('heatmap hover', function() {
881881 it ( 'should find closest point (case 1) and should' , function ( ) {
882882 var pt = _hover ( gd , 0.5 , 0.5 ) [ 0 ] ;
883883
884- expect ( pt . index ) . toEqual ( [ 1 , 0 ] , 'have correct index' ) ;
884+ expect ( pt . index ) . toBe ( 1 , 'have correct index' ) ;
885885 assertLabels ( pt , 1 , 1 , 4 ) ;
886886 } ) ;
887887
888888 it ( 'should find closest point (case 2) and should' , function ( ) {
889889 var pt = _hover ( gd , 1.5 , 0.5 ) [ 0 ] ;
890890
891- expect ( pt . index ) . toEqual ( [ 0 , 0 ] , 'have correct index' ) ;
891+ expect ( pt . index ) . toBe ( 0 , 'have correct index' ) ;
892892 assertLabels ( pt , 2 , 0.2 , 6 ) ;
893893 } ) ;
894894 } ) ;
@@ -931,13 +931,13 @@ describe('heatmap hover', function() {
931931 it ( 'should find closest point and should' , function ( done ) {
932932 var pt = _hover ( gd , 0.5 , 0.5 ) [ 0 ] ;
933933
934- expect ( pt . index ) . toEqual ( [ 0 , 0 ] , 'have correct index' ) ;
934+ expect ( pt . index ) . toBe ( 0 , 'have correct index' ) ;
935935 assertLabels ( pt , 1 , 1 , 10 , 'a' ) ;
936936
937937 Plotly . relayout ( gd , 'xaxis.range' , [ 1 , 2 ] ) . then ( function ( ) {
938938 var pt2 = _hover ( gd , 1.5 , 0.5 ) [ 0 ] ;
939939
940- expect ( pt2 . index ) . toEqual ( [ 0 , 1 ] , 'have correct index' ) ;
940+ expect ( pt2 . index ) . toBe ( 1 , 'have correct index' ) ;
941941 assertLabels ( pt2 , 2 , 1 , 4 , 'b' ) ;
942942 } )
943943 . then ( done ) ;
0 commit comments