@@ -10,7 +10,7 @@ var topojsonUtils = require('@src/lib/topojson_utils');
10
10
var d3 = require ( 'd3' ) ;
11
11
var createGraphDiv = require ( '../assets/create_graph_div' ) ;
12
12
var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
13
- var fail = require ( '../assets/fail_test' ) ;
13
+ var failTest = require ( '../assets/fail_test' ) ;
14
14
var getClientPosition = require ( '../assets/get_client_position' ) ;
15
15
var mouseEvent = require ( '../assets/mouse_event' ) ;
16
16
var click = require ( '../assets/click' ) ;
@@ -1068,7 +1068,7 @@ describe('Test geo interactions', function() {
1068
1068
mouseEvent ( 'mousemove' , 350 , 250 ) ;
1069
1069
expect ( d3 . selectAll ( 'g.hovertext' ) . size ( ) ) . toEqual ( 1 ) ;
1070
1070
} )
1071
- . catch ( fail )
1071
+ . catch ( failTest )
1072
1072
. then ( done ) ;
1073
1073
} ) ;
1074
1074
@@ -1109,7 +1109,7 @@ describe('Test geo interactions', function() {
1109
1109
} , 100 ) ;
1110
1110
} ) ;
1111
1111
} )
1112
- . catch ( fail )
1112
+ . catch ( failTest )
1113
1113
. then ( done ) ;
1114
1114
} ) ;
1115
1115
@@ -1138,7 +1138,7 @@ describe('Test geo interactions', function() {
1138
1138
check ( [ px , 163 ] , 0 ) ;
1139
1139
check ( [ px , 360 ] , 1 ) ;
1140
1140
} )
1141
- . catch ( fail )
1141
+ . catch ( failTest )
1142
1142
. then ( done ) ;
1143
1143
} ) ;
1144
1144
@@ -1198,7 +1198,7 @@ describe('Test geo interactions', function() {
1198
1198
'Invalid geo settings, relayout\'ing to default view.'
1199
1199
) ;
1200
1200
} )
1201
- . catch ( fail )
1201
+ . catch ( failTest )
1202
1202
. then ( done ) ;
1203
1203
} ) ;
1204
1204
@@ -1249,7 +1249,7 @@ describe('Test geo interactions', function() {
1249
1249
. then ( function ( ) {
1250
1250
check ( [ - 150 , - 89 ] , 1 , 'spot in Antarctica that requires *stitching*' ) ;
1251
1251
} )
1252
- . catch ( fail )
1252
+ . catch ( failTest )
1253
1253
. then ( done ) ;
1254
1254
} ) ;
1255
1255
} ) ;
@@ -1518,7 +1518,7 @@ describe('Test geo base layers', function() {
1518
1518
[ 'bg' , 'coastlines' , 'frame' , 'backplot' , 'frontplot' ]
1519
1519
) ;
1520
1520
} )
1521
- . catch ( fail )
1521
+ . catch ( failTest )
1522
1522
. then ( done ) ;
1523
1523
} ) ;
1524
1524
} ) ;
@@ -1686,7 +1686,7 @@ describe('Test geo zoom/pan/drag interactions:', function() {
1686
1686
[ 90 , 0 ] , [ 350 , 260 ] , [ 0 , 0 ] , 101.9
1687
1687
] , 'dblclick' ) ;
1688
1688
} )
1689
- . catch ( fail )
1689
+ . catch ( failTest )
1690
1690
. then ( done ) ;
1691
1691
} ) ;
1692
1692
@@ -1775,7 +1775,7 @@ describe('Test geo zoom/pan/drag interactions:', function() {
1775
1775
[ 75 , - 45 ] , 160
1776
1776
] , 'dblclick' ) ;
1777
1777
} )
1778
- . catch ( fail )
1778
+ . catch ( failTest )
1779
1779
. then ( done ) ;
1780
1780
} ) ;
1781
1781
@@ -1858,7 +1858,7 @@ describe('Test geo zoom/pan/drag interactions:', function() {
1858
1858
[ 247 , 260 ] , [ 0 , 57.5 ] , 292.2
1859
1859
] , 'dblclick' ) ;
1860
1860
} )
1861
- . catch ( fail )
1861
+ . catch ( failTest )
1862
1862
. then ( done ) ;
1863
1863
} ) ;
1864
1864
@@ -1938,7 +1938,7 @@ describe('Test geo zoom/pan/drag interactions:', function() {
1938
1938
[ 416 , 309 ] , 738.5
1939
1939
] , 'dblclick' ) ;
1940
1940
} )
1941
- . catch ( fail )
1941
+ . catch ( failTest )
1942
1942
. then ( done ) ;
1943
1943
} ) ;
1944
1944
} ) ;
0 commit comments