@@ -9,7 +9,7 @@ var Axes = require('@src/plots/cartesian/axes');
99
1010var createGraphDiv = require ( '../assets/create_graph_div' ) ;
1111var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
12- var fail = require ( '../assets/fail_test' ) ;
12+ var failTest = require ( '../assets/fail_test' ) ;
1313var checkTicks = require ( '../assets/custom_assertions' ) . checkTicks ;
1414var supplyAllDefaults = require ( '../assets/supply_defaults' ) ;
1515
@@ -897,7 +897,7 @@ describe('A bar plot', function() {
897897
898898 expect ( foundTextNodes ) . toBe ( true ) ;
899899 } )
900- . catch ( fail )
900+ . catch ( failTest )
901901 . then ( done ) ;
902902 } ) ;
903903
@@ -930,7 +930,7 @@ describe('A bar plot', function() {
930930
931931 expect ( foundTextNodes ) . toBe ( true ) ;
932932 } )
933- . catch ( fail )
933+ . catch ( failTest )
934934 . then ( done ) ;
935935 } ) ;
936936
@@ -961,7 +961,7 @@ describe('A bar plot', function() {
961961
962962 expect ( foundTextNodes ) . toBe ( true ) ;
963963 } )
964- . catch ( fail )
964+ . catch ( failTest )
965965 . then ( done ) ;
966966 } ) ;
967967
@@ -995,7 +995,7 @@ describe('A bar plot', function() {
995995
996996 expect ( foundTextNodes ) . toBe ( true ) ;
997997 } )
998- . catch ( fail )
998+ . catch ( failTest )
999999 . then ( done ) ;
10001000 } ) ;
10011001
@@ -1144,7 +1144,7 @@ describe('A bar plot', function() {
11441144 assertTextIsInsidePath ( text20 , path20 ) ; // inside
11451145 assertTextIsInsidePath ( text30 , path30 ) ; // inside
11461146 } )
1147- . catch ( fail )
1147+ . catch ( failTest )
11481148 . then ( done ) ;
11491149 } ) ;
11501150
@@ -1225,7 +1225,7 @@ describe('A bar plot', function() {
12251225 assertTextFont ( textNodes [ 1 ] , expected . outsidetextfont , 1 ) ;
12261226 assertTextFont ( textNodes [ 2 ] , expected . insidetextfont , 2 ) ;
12271227 } )
1228- . catch ( fail )
1228+ . catch ( failTest )
12291229 . then ( done ) ;
12301230 } ) ;
12311231
@@ -1291,7 +1291,7 @@ describe('A bar plot', function() {
12911291
12921292 checkBarsMatch ( [ 'bottom' , 'width' ] , 'final' ) ;
12931293 } )
1294- . catch ( fail )
1294+ . catch ( failTest )
12951295 . then ( done ) ;
12961296 } ) ;
12971297
@@ -1328,7 +1328,7 @@ describe('A bar plot', function() {
13281328 . then ( function ( ) {
13291329 _assertNumberOfBarTextNodes ( 3 ) ;
13301330 } )
1331- . catch ( fail )
1331+ . catch ( failTest )
13321332 . then ( done ) ;
13331333 } ) ;
13341334} ) ;
@@ -1384,7 +1384,7 @@ describe('bar hover', function() {
13841384 var mock = Lib . extendDeep ( { } , require ( '@mocks/11.json' ) ) ;
13851385
13861386 Plotly . plot ( gd , mock . data , mock . layout )
1387- . catch ( fail )
1387+ . catch ( failTest )
13881388 . then ( done ) ;
13891389 } ) ;
13901390
@@ -1410,7 +1410,7 @@ describe('bar hover', function() {
14101410 var mock = Lib . extendDeep ( { } , require ( '@mocks/bar_attrs_group_norm.json' ) ) ;
14111411
14121412 Plotly . plot ( gd , mock . data , mock . layout )
1413- . catch ( fail )
1413+ . catch ( failTest )
14141414 . then ( done ) ;
14151415 } ) ;
14161416
@@ -1476,7 +1476,7 @@ describe('bar hover', function() {
14761476 var out = _hover ( gd , - 0.25 , 0.5 , 'closest' ) ;
14771477 expect ( out . text ) . toEqual ( 'apple' , 'hover text' ) ;
14781478 } )
1479- . catch ( fail )
1479+ . catch ( failTest )
14801480 . then ( done ) ;
14811481 } ) ;
14821482 } ) ;
@@ -1526,7 +1526,7 @@ describe('bar hover', function() {
15261526 expect ( out ) . toBe ( false , hoverSpec ) ;
15271527 } ) ;
15281528 } )
1529- . catch ( fail )
1529+ . catch ( failTest )
15301530 . then ( done ) ;
15311531 } ) ;
15321532
@@ -1564,7 +1564,7 @@ describe('bar hover', function() {
15641564 expect ( out . style ) . toEqual ( [ 1 , 'red' , 200 , 1 ] ) ;
15651565 assertPos ( out . pos , [ 222 , 280 , 168 , 168 ] ) ;
15661566 } )
1567- . catch ( fail )
1567+ . catch ( failTest )
15681568 . then ( done ) ;
15691569 } ) ;
15701570
@@ -1594,7 +1594,7 @@ describe('bar hover', function() {
15941594 out = _hover ( gd , 10 , 2 , 'closest' ) ;
15951595 assertPos ( out . pos , [ 145 , 155 , 15 , 15 ] ) ;
15961596 } )
1597- . catch ( fail )
1597+ . catch ( failTest )
15981598 . then ( done ) ;
15991599 } ) ;
16001600 } ) ;
@@ -1699,7 +1699,7 @@ describe('bar hover', function() {
16991699 [ true , 3 ]
17001700 ) ;
17011701 } )
1702- . catch ( fail )
1702+ . catch ( failTest )
17031703 . then ( done ) ;
17041704 } ) ;
17051705} ) ;
0 commit comments