@@ -8,7 +8,7 @@ var Plotly = require('@lib/index');
8
8
var createGraphDiv = require ( '../assets/create_graph_div' ) ;
9
9
var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
10
10
var customAssertions = require ( '../assets/custom_assertions' ) ;
11
- var fail = require ( '../assets/fail_test' ) ;
11
+ var failTest = require ( '../assets/fail_test' ) ;
12
12
13
13
var assertClip = customAssertions . assertClip ;
14
14
var assertNodeDisplay = customAssertions . assertNodeDisplay ;
@@ -561,7 +561,7 @@ describe('end-to-end scatter tests', function() {
561
561
expect ( d3 . select ( this ) . classed ( 'plotly-customdata' ) ) . toBe ( false ) ;
562
562
} ) ;
563
563
564
- } ) . catch ( fail ) . then ( done ) ;
564
+ } ) . catch ( failTest ) . then ( done ) ;
565
565
} ) ;
566
566
567
567
it ( 'adds "textpoint" class to scatter text points' , function ( done ) {
@@ -572,7 +572,7 @@ describe('end-to-end scatter tests', function() {
572
572
text : [ 'a' , 'b' , 'c' ]
573
573
} ] ) . then ( function ( ) {
574
574
expect ( Plotly . d3 . selectAll ( '.textpoint' ) . size ( ) ) . toBe ( 3 ) ;
575
- } ) . catch ( fail ) . then ( done ) ;
575
+ } ) . catch ( failTest ) . then ( done ) ;
576
576
} ) ;
577
577
578
578
it ( 'should remove all point and text nodes on blank data' , function ( done ) {
@@ -625,7 +625,7 @@ describe('end-to-end scatter tests', function() {
625
625
assertNodeCnt ( 3 , 3 ) ;
626
626
assertText ( [ 'A' , 'B' , 'C' ] ) ;
627
627
} )
628
- . catch ( fail )
628
+ . catch ( failTest )
629
629
. then ( done ) ;
630
630
} ) ;
631
631
@@ -683,7 +683,7 @@ describe('end-to-end scatter tests', function() {
683
683
[ 'apple' , 'banana' , 'clementine' ]
684
684
) ;
685
685
} )
686
- . catch ( fail )
686
+ . catch ( failTest )
687
687
. then ( done ) ;
688
688
} ) ;
689
689
@@ -727,7 +727,7 @@ describe('end-to-end scatter tests', function() {
727
727
[ 'apple' , 'banana' , 'clementine' ]
728
728
) ;
729
729
} )
730
- . catch ( fail )
730
+ . catch ( failTest )
731
731
. then ( done ) ;
732
732
} ) ;
733
733
@@ -763,7 +763,7 @@ describe('end-to-end scatter tests', function() {
763
763
[ 'apple' , 'banana' , 'dragon fruit' ]
764
764
) ;
765
765
} )
766
- . catch ( fail )
766
+ . catch ( failTest )
767
767
. then ( done ) ;
768
768
} ) ;
769
769
@@ -785,7 +785,7 @@ describe('end-to-end scatter tests', function() {
785
785
) ;
786
786
} ) . then ( function ( ) {
787
787
expect ( fill ( ) ) . toEqual ( 'rgb(0, 0, 255)' ) ;
788
- } ) . catch ( fail ) . then ( done ) ;
788
+ } ) . catch ( failTest ) . then ( done ) ;
789
789
} ) ;
790
790
791
791
it ( 'clears fills tonext when either trace is emptied out' , function ( done ) {
@@ -828,7 +828,7 @@ describe('end-to-end scatter tests', function() {
828
828
. then ( function ( ) {
829
829
checkFill ( false , 'null out both traces' ) ;
830
830
} )
831
- . catch ( fail )
831
+ . catch ( failTest )
832
832
. then ( done ) ;
833
833
} ) ;
834
834
@@ -875,7 +875,7 @@ describe('end-to-end scatter tests', function() {
875
875
[ 40 , 30 , 20 ]
876
876
) ;
877
877
} )
878
- . catch ( fail )
878
+ . catch ( failTest )
879
879
. then ( done ) ;
880
880
} ) ;
881
881
} ) ;
@@ -944,7 +944,7 @@ describe('scatter hoverPoints', function() {
944
944
expect ( pts [ 1 ] . text ) . toEqual ( 'banana' , 'hover text' ) ;
945
945
expect ( pts [ 2 ] . text ) . toEqual ( 'orange' , 'hover text' ) ;
946
946
} )
947
- . catch ( fail )
947
+ . catch ( failTest )
948
948
. then ( done ) ;
949
949
} ) ;
950
950
} ) ;
@@ -1073,7 +1073,7 @@ describe('Test Scatter.style', function() {
1073
1073
'selected pt 1 w/ set unselected.marker.opacity'
1074
1074
) ;
1075
1075
} )
1076
- . catch ( fail )
1076
+ . catch ( failTest )
1077
1077
. then ( done ) ;
1078
1078
} ) ;
1079
1079
@@ -1160,7 +1160,7 @@ describe('Test Scatter.style', function() {
1160
1160
'selected pts 0-2 w/ set selected.marker.color'
1161
1161
) ;
1162
1162
} )
1163
- . catch ( fail )
1163
+ . catch ( failTest )
1164
1164
. then ( done ) ;
1165
1165
} ) ;
1166
1166
@@ -1204,7 +1204,7 @@ describe('Test Scatter.style', function() {
1204
1204
'selected pt 0 w/ set unselected.marker.size'
1205
1205
) ;
1206
1206
} )
1207
- . catch ( fail )
1207
+ . catch ( failTest )
1208
1208
. then ( done ) ;
1209
1209
} ) ;
1210
1210
@@ -1287,7 +1287,7 @@ describe('Test Scatter.style', function() {
1287
1287
'selected pts 0-2 w/ set selected.textfont.color'
1288
1288
) ;
1289
1289
} )
1290
- . catch ( fail )
1290
+ . catch ( failTest )
1291
1291
. then ( done ) ;
1292
1292
} ) ;
1293
1293
} ) ;
@@ -1433,7 +1433,7 @@ describe('Test scatter *clipnaxis*:', function() {
1433
1433
[ true , 1 ]
1434
1434
) ;
1435
1435
} )
1436
- . catch ( fail )
1436
+ . catch ( failTest )
1437
1437
. then ( done ) ;
1438
1438
} ) ;
1439
1439
} ) ;
0 commit comments