@@ -6,7 +6,7 @@ var constants = require('@src/plots/polar/constants');
6
6
var d3 = require ( 'd3' ) ;
7
7
var createGraphDiv = require ( '../assets/create_graph_div' ) ;
8
8
var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
9
- var fail = require ( '../assets/fail_test' ) ;
9
+ var failTest = require ( '../assets/fail_test' ) ;
10
10
var mouseEvent = require ( '../assets/mouse_event' ) ;
11
11
var click = require ( '../assets/click' ) ;
12
12
var doubleClick = require ( '../assets/double_click' ) ;
@@ -52,7 +52,7 @@ describe('Test legacy polar plots logs:', function() {
52
52
expect ( Lib . log ) . toHaveBeenCalledTimes ( 1 ) ;
53
53
expect ( Lib . log ) . toHaveBeenCalledWith ( 'Legacy polar charts are deprecated!' ) ;
54
54
} )
55
- . catch ( fail )
55
+ . catch ( failTest )
56
56
. then ( done ) ;
57
57
} ) ;
58
58
} ) ;
@@ -265,7 +265,7 @@ describe('Test relayout on polar subplots:', function() {
265
265
. then ( function ( ) {
266
266
_assert ( dflt ) ;
267
267
} )
268
- . catch ( fail )
268
+ . catch ( failTest )
269
269
. then ( done ) ;
270
270
} ) ;
271
271
@@ -295,7 +295,7 @@ describe('Test relayout on polar subplots:', function() {
295
295
expect ( gd . _fullLayout . polar . radialaxis . range )
296
296
. toBeCloseToArray ( [ 0 , 11.225 ] ) ;
297
297
} )
298
- . catch ( fail )
298
+ . catch ( failTest )
299
299
. then ( done ) ;
300
300
} ) ;
301
301
@@ -321,7 +321,7 @@ describe('Test relayout on polar subplots:', function() {
321
321
// if they're the same, the tick label position did not update
322
322
expect ( pos1 ) . not . toBeCloseTo2DArray ( pos0 ) ;
323
323
} )
324
- . catch ( fail )
324
+ . catch ( failTest )
325
325
. then ( done ) ;
326
326
} ) ;
327
327
@@ -357,7 +357,7 @@ describe('Test relayout on polar subplots:', function() {
357
357
. then ( function ( ) {
358
358
check ( 8 , 'M-1.5,0h-5' ) ;
359
359
} )
360
- . catch ( fail )
360
+ . catch ( failTest )
361
361
. then ( done ) ;
362
362
} ) ;
363
363
@@ -450,7 +450,7 @@ describe('Test relayout on polar subplots:', function() {
450
450
'.angular-axis > path.angulartick' , assertCnt
451
451
) ;
452
452
} )
453
- . catch ( fail )
453
+ . catch ( failTest )
454
454
. then ( done ) ;
455
455
} ) ;
456
456
@@ -506,7 +506,7 @@ describe('Test relayout on polar subplots:', function() {
506
506
. then ( function ( ) {
507
507
assertTitle ( 'yo2' , false ) ;
508
508
} )
509
- . catch ( fail )
509
+ . catch ( failTest )
510
510
. then ( done ) ;
511
511
} ) ;
512
512
@@ -540,7 +540,7 @@ describe('Test relayout on polar subplots:', function() {
540
540
. then ( function ( ) {
541
541
_assert ( { subplot : 1 , clip : 1 , rtitle : 1 } ) ;
542
542
} )
543
- . catch ( fail )
543
+ . catch ( failTest )
544
544
. then ( done ) ;
545
545
} ) ;
546
546
@@ -599,7 +599,7 @@ describe('Test relayout on polar subplots:', function() {
599
599
sampleXY : [ - 25 , 43 ]
600
600
} ) ;
601
601
} )
602
- . catch ( fail )
602
+ . catch ( failTest )
603
603
. then ( done ) ;
604
604
} ) ;
605
605
} ) ;
@@ -794,7 +794,7 @@ describe('Test polar interactions:', function() {
794
794
plotly_relayout : 1
795
795
} , 'after right click' ) ;
796
796
} )
797
- . catch ( fail )
797
+ . catch ( failTest )
798
798
. then ( done ) ;
799
799
} ) ;
800
800
@@ -885,7 +885,7 @@ describe('Test polar interactions:', function() {
885
885
expect ( eventCnts . plotly_relayout )
886
886
. toBe ( relayoutNumber , 'no new relayout events after *not far enough* cases' ) ;
887
887
} )
888
- . catch ( fail )
888
+ . catch ( failTest )
889
889
. then ( done ) ;
890
890
} ) ;
891
891
@@ -969,7 +969,7 @@ describe('Test polar interactions:', function() {
969
969
. then ( function ( ) {
970
970
expect ( eventCnts . plotly_relayout ) . toBe ( 8 , 'total # of relayout events' ) ;
971
971
} )
972
- . catch ( fail )
972
+ . catch ( failTest )
973
973
. then ( done ) ;
974
974
} ) ;
975
975
@@ -1034,7 +1034,7 @@ describe('Test polar interactions:', function() {
1034
1034
. then ( function ( ) {
1035
1035
expect ( eventCnts . plotly_relayout ) . toBe ( 4 , 'total # of relayout events' ) ;
1036
1036
} )
1037
- . catch ( fail )
1037
+ . catch ( failTest )
1038
1038
. then ( done ) ;
1039
1039
} ) ;
1040
1040
} ) ;
0 commit comments