@@ -9,7 +9,7 @@ var Axes = require('@src/plots/cartesian/axes');
9
9
10
10
var createGraphDiv = require ( '../assets/create_graph_div' ) ;
11
11
var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
12
- var fail = require ( '../assets/fail_test' ) ;
12
+ var failTest = require ( '../assets/fail_test' ) ;
13
13
var checkTicks = require ( '../assets/custom_assertions' ) . checkTicks ;
14
14
var supplyAllDefaults = require ( '../assets/supply_defaults' ) ;
15
15
@@ -897,7 +897,7 @@ describe('A bar plot', function() {
897
897
898
898
expect ( foundTextNodes ) . toBe ( true ) ;
899
899
} )
900
- . catch ( fail )
900
+ . catch ( failTest )
901
901
. then ( done ) ;
902
902
} ) ;
903
903
@@ -930,7 +930,7 @@ describe('A bar plot', function() {
930
930
931
931
expect ( foundTextNodes ) . toBe ( true ) ;
932
932
} )
933
- . catch ( fail )
933
+ . catch ( failTest )
934
934
. then ( done ) ;
935
935
} ) ;
936
936
@@ -961,7 +961,7 @@ describe('A bar plot', function() {
961
961
962
962
expect ( foundTextNodes ) . toBe ( true ) ;
963
963
} )
964
- . catch ( fail )
964
+ . catch ( failTest )
965
965
. then ( done ) ;
966
966
} ) ;
967
967
@@ -995,7 +995,7 @@ describe('A bar plot', function() {
995
995
996
996
expect ( foundTextNodes ) . toBe ( true ) ;
997
997
} )
998
- . catch ( fail )
998
+ . catch ( failTest )
999
999
. then ( done ) ;
1000
1000
} ) ;
1001
1001
@@ -1144,7 +1144,7 @@ describe('A bar plot', function() {
1144
1144
assertTextIsInsidePath ( text20 , path20 ) ; // inside
1145
1145
assertTextIsInsidePath ( text30 , path30 ) ; // inside
1146
1146
} )
1147
- . catch ( fail )
1147
+ . catch ( failTest )
1148
1148
. then ( done ) ;
1149
1149
} ) ;
1150
1150
@@ -1225,7 +1225,7 @@ describe('A bar plot', function() {
1225
1225
assertTextFont ( textNodes [ 1 ] , expected . outsidetextfont , 1 ) ;
1226
1226
assertTextFont ( textNodes [ 2 ] , expected . insidetextfont , 2 ) ;
1227
1227
} )
1228
- . catch ( fail )
1228
+ . catch ( failTest )
1229
1229
. then ( done ) ;
1230
1230
} ) ;
1231
1231
@@ -1291,7 +1291,7 @@ describe('A bar plot', function() {
1291
1291
1292
1292
checkBarsMatch ( [ 'bottom' , 'width' ] , 'final' ) ;
1293
1293
} )
1294
- . catch ( fail )
1294
+ . catch ( failTest )
1295
1295
. then ( done ) ;
1296
1296
} ) ;
1297
1297
@@ -1328,7 +1328,7 @@ describe('A bar plot', function() {
1328
1328
. then ( function ( ) {
1329
1329
_assertNumberOfBarTextNodes ( 3 ) ;
1330
1330
} )
1331
- . catch ( fail )
1331
+ . catch ( failTest )
1332
1332
. then ( done ) ;
1333
1333
} ) ;
1334
1334
} ) ;
@@ -1384,7 +1384,7 @@ describe('bar hover', function() {
1384
1384
var mock = Lib . extendDeep ( { } , require ( '@mocks/11.json' ) ) ;
1385
1385
1386
1386
Plotly . plot ( gd , mock . data , mock . layout )
1387
- . catch ( fail )
1387
+ . catch ( failTest )
1388
1388
. then ( done ) ;
1389
1389
} ) ;
1390
1390
@@ -1410,7 +1410,7 @@ describe('bar hover', function() {
1410
1410
var mock = Lib . extendDeep ( { } , require ( '@mocks/bar_attrs_group_norm.json' ) ) ;
1411
1411
1412
1412
Plotly . plot ( gd , mock . data , mock . layout )
1413
- . catch ( fail )
1413
+ . catch ( failTest )
1414
1414
. then ( done ) ;
1415
1415
} ) ;
1416
1416
@@ -1476,7 +1476,7 @@ describe('bar hover', function() {
1476
1476
var out = _hover ( gd , - 0.25 , 0.5 , 'closest' ) ;
1477
1477
expect ( out . text ) . toEqual ( 'apple' , 'hover text' ) ;
1478
1478
} )
1479
- . catch ( fail )
1479
+ . catch ( failTest )
1480
1480
. then ( done ) ;
1481
1481
} ) ;
1482
1482
} ) ;
@@ -1526,7 +1526,7 @@ describe('bar hover', function() {
1526
1526
expect ( out ) . toBe ( false , hoverSpec ) ;
1527
1527
} ) ;
1528
1528
} )
1529
- . catch ( fail )
1529
+ . catch ( failTest )
1530
1530
. then ( done ) ;
1531
1531
} ) ;
1532
1532
@@ -1564,7 +1564,7 @@ describe('bar hover', function() {
1564
1564
expect ( out . style ) . toEqual ( [ 1 , 'red' , 200 , 1 ] ) ;
1565
1565
assertPos ( out . pos , [ 222 , 280 , 168 , 168 ] ) ;
1566
1566
} )
1567
- . catch ( fail )
1567
+ . catch ( failTest )
1568
1568
. then ( done ) ;
1569
1569
} ) ;
1570
1570
@@ -1594,7 +1594,7 @@ describe('bar hover', function() {
1594
1594
out = _hover ( gd , 10 , 2 , 'closest' ) ;
1595
1595
assertPos ( out . pos , [ 145 , 155 , 15 , 15 ] ) ;
1596
1596
} )
1597
- . catch ( fail )
1597
+ . catch ( failTest )
1598
1598
. then ( done ) ;
1599
1599
} ) ;
1600
1600
} ) ;
@@ -1699,7 +1699,7 @@ describe('bar hover', function() {
1699
1699
[ true , 3 ]
1700
1700
) ;
1701
1701
} )
1702
- . catch ( fail )
1702
+ . catch ( failTest )
1703
1703
. then ( done ) ;
1704
1704
} ) ;
1705
1705
} ) ;
0 commit comments