@@ -6,7 +6,7 @@ var constants = require('@src/plots/polar/constants');
66var d3 = require ( 'd3' ) ;
77var createGraphDiv = require ( '../assets/create_graph_div' ) ;
88var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
9- var fail = require ( '../assets/fail_test' ) ;
9+ var failTest = require ( '../assets/fail_test' ) ;
1010var mouseEvent = require ( '../assets/mouse_event' ) ;
1111var click = require ( '../assets/click' ) ;
1212var doubleClick = require ( '../assets/double_click' ) ;
@@ -52,7 +52,7 @@ describe('Test legacy polar plots logs:', function() {
5252 expect ( Lib . log ) . toHaveBeenCalledTimes ( 1 ) ;
5353 expect ( Lib . log ) . toHaveBeenCalledWith ( 'Legacy polar charts are deprecated!' ) ;
5454 } )
55- . catch ( fail )
55+ . catch ( failTest )
5656 . then ( done ) ;
5757 } ) ;
5858 } ) ;
@@ -265,7 +265,7 @@ describe('Test relayout on polar subplots:', function() {
265265 . then ( function ( ) {
266266 _assert ( dflt ) ;
267267 } )
268- . catch ( fail )
268+ . catch ( failTest )
269269 . then ( done ) ;
270270 } ) ;
271271
@@ -295,7 +295,7 @@ describe('Test relayout on polar subplots:', function() {
295295 expect ( gd . _fullLayout . polar . radialaxis . range )
296296 . toBeCloseToArray ( [ 0 , 11.225 ] ) ;
297297 } )
298- . catch ( fail )
298+ . catch ( failTest )
299299 . then ( done ) ;
300300 } ) ;
301301
@@ -321,7 +321,7 @@ describe('Test relayout on polar subplots:', function() {
321321 // if they're the same, the tick label position did not update
322322 expect ( pos1 ) . not . toBeCloseTo2DArray ( pos0 ) ;
323323 } )
324- . catch ( fail )
324+ . catch ( failTest )
325325 . then ( done ) ;
326326 } ) ;
327327
@@ -357,7 +357,7 @@ describe('Test relayout on polar subplots:', function() {
357357 . then ( function ( ) {
358358 check ( 8 , 'M-1.5,0h-5' ) ;
359359 } )
360- . catch ( fail )
360+ . catch ( failTest )
361361 . then ( done ) ;
362362 } ) ;
363363
@@ -450,7 +450,7 @@ describe('Test relayout on polar subplots:', function() {
450450 '.angular-axis > path.angulartick' , assertCnt
451451 ) ;
452452 } )
453- . catch ( fail )
453+ . catch ( failTest )
454454 . then ( done ) ;
455455 } ) ;
456456
@@ -506,7 +506,7 @@ describe('Test relayout on polar subplots:', function() {
506506 . then ( function ( ) {
507507 assertTitle ( 'yo2' , false ) ;
508508 } )
509- . catch ( fail )
509+ . catch ( failTest )
510510 . then ( done ) ;
511511 } ) ;
512512
@@ -540,7 +540,7 @@ describe('Test relayout on polar subplots:', function() {
540540 . then ( function ( ) {
541541 _assert ( { subplot : 1 , clip : 1 , rtitle : 1 } ) ;
542542 } )
543- . catch ( fail )
543+ . catch ( failTest )
544544 . then ( done ) ;
545545 } ) ;
546546
@@ -599,7 +599,7 @@ describe('Test relayout on polar subplots:', function() {
599599 sampleXY : [ - 25 , 43 ]
600600 } ) ;
601601 } )
602- . catch ( fail )
602+ . catch ( failTest )
603603 . then ( done ) ;
604604 } ) ;
605605} ) ;
@@ -794,7 +794,7 @@ describe('Test polar interactions:', function() {
794794 plotly_relayout : 1
795795 } , 'after right click' ) ;
796796 } )
797- . catch ( fail )
797+ . catch ( failTest )
798798 . then ( done ) ;
799799 } ) ;
800800
@@ -885,7 +885,7 @@ describe('Test polar interactions:', function() {
885885 expect ( eventCnts . plotly_relayout )
886886 . toBe ( relayoutNumber , 'no new relayout events after *not far enough* cases' ) ;
887887 } )
888- . catch ( fail )
888+ . catch ( failTest )
889889 . then ( done ) ;
890890 } ) ;
891891
@@ -969,7 +969,7 @@ describe('Test polar interactions:', function() {
969969 . then ( function ( ) {
970970 expect ( eventCnts . plotly_relayout ) . toBe ( 8 , 'total # of relayout events' ) ;
971971 } )
972- . catch ( fail )
972+ . catch ( failTest )
973973 . then ( done ) ;
974974 } ) ;
975975
@@ -1034,7 +1034,7 @@ describe('Test polar interactions:', function() {
10341034 . then ( function ( ) {
10351035 expect ( eventCnts . plotly_relayout ) . toBe ( 4 , 'total # of relayout events' ) ;
10361036 } )
1037- . catch ( fail )
1037+ . catch ( failTest )
10381038 . then ( done ) ;
10391039 } ) ;
10401040} ) ;
0 commit comments