@@ -8,7 +8,7 @@ var Contour = require('@src/traces/contour');
8
8
var makeColorMap = require ( '@src/traces/contour/make_color_map' ) ;
9
9
var colorScales = require ( '@src/components/colorscale/scales' ) ;
10
10
11
- var fail = require ( '../assets/fail_test' ) ;
11
+ var failTest = require ( '../assets/fail_test' ) ;
12
12
var createGraphDiv = require ( '../assets/create_graph_div' ) ;
13
13
var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
14
14
var checkTicks = require ( '../assets/custom_assertions' ) . checkTicks ;
@@ -388,7 +388,7 @@ describe('contour plotting and editing', function() {
388
388
checkTicks ( 'y' , [ 'Jan 102016' , 'Jan 24' , 'Feb 7' , 'Feb 21' ] , 'date y #2' ) ;
389
389
expect ( gd . _fullLayout . yaxis . type ) . toBe ( 'date' ) ;
390
390
} )
391
- . catch ( fail )
391
+ . catch ( failTest )
392
392
. then ( done ) ;
393
393
} ) ;
394
394
@@ -407,7 +407,7 @@ describe('contour plotting and editing', function() {
407
407
. then ( function ( ) {
408
408
expect ( gd . querySelector ( '.contourlabels text' ) . textContent ) . toBe ( '0.41' ) ;
409
409
} )
410
- . catch ( fail )
410
+ . catch ( failTest )
411
411
. then ( done ) ;
412
412
} ) ;
413
413
@@ -458,7 +458,7 @@ describe('contour plotting and editing', function() {
458
458
contoursIndex : 3
459
459
} ) ;
460
460
} )
461
- . catch ( fail )
461
+ . catch ( failTest )
462
462
. then ( done ) ;
463
463
} ) ;
464
464
@@ -500,7 +500,7 @@ describe('contour plotting and editing', function() {
500
500
expect ( gd . calcdata [ 0 ] [ 0 ] . z ) . toEqual ( [ [ 1 , 2 ] , [ 2 , 4 ] , [ 1 , 2.5 ] ] ) ;
501
501
expect ( gd . calcdata [ 0 ] [ 0 ] . zmask ) . toEqual ( [ [ 1 , 1 ] , [ 0 , 1 ] , [ 1 , 0 ] ] ) ;
502
502
} )
503
- . catch ( fail )
503
+ . catch ( failTest )
504
504
. then ( done ) ;
505
505
} ) ;
506
506
@@ -530,7 +530,7 @@ describe('contour plotting and editing', function() {
530
530
. then ( function ( ) {
531
531
expect ( getIndices ( ) ) . toEqual ( [ 0 , 1 ] ) ;
532
532
} )
533
- . catch ( fail )
533
+ . catch ( failTest )
534
534
. then ( done ) ;
535
535
} ) ;
536
536
} ) ;
0 commit comments