Skip to content

Commit 7843d83

Browse files
committed
fail->failTest in 2 more test files
1 parent 0f532f3 commit 7843d83

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

test/jasmine/tests/carpet_test.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var smoothFill = require('@src/traces/carpet/smooth_fill_array');
99
var d3 = require('d3');
1010
var createGraphDiv = require('../assets/create_graph_div');
1111
var destroyGraphDiv = require('../assets/destroy_graph_div');
12-
var fail = require('../assets/fail_test');
12+
var failTest = require('../assets/fail_test');
1313

1414
var mouseEvent = require('../assets/mouse_event');
1515
var assertHoverLabelContent = require('../assets/custom_assertions').assertHoverLabelContent;
@@ -463,7 +463,7 @@ describe('Test carpet interactions:', function() {
463463
expect(countCarpets()).toEqual(0);
464464
expect(countContourTraces()).toEqual(0);
465465
})
466-
.catch(fail)
466+
.catch(failTest)
467467
.then(done);
468468
});
469469

@@ -494,7 +494,7 @@ describe('Test carpet interactions:', function() {
494494
expect(countCarpets()).toEqual(0);
495495
expect(countContourTraces()).toEqual(0);
496496
})
497-
.catch(fail)
497+
.catch(failTest)
498498
.then(done);
499499
});
500500

@@ -508,7 +508,7 @@ describe('Test carpet interactions:', function() {
508508
.then(function() {
509509
return Plotly.relayout(gd, 'yaxis.range', [7, 8]);
510510
})
511-
.catch(fail)
511+
.catch(failTest)
512512
.then(done);
513513
});
514514

@@ -534,7 +534,7 @@ describe('Test carpet interactions:', function() {
534534
.then(function() {
535535
_assert(3);
536536
})
537-
.catch(fail)
537+
.catch(failTest)
538538
.then(done);
539539
});
540540
});
@@ -592,7 +592,7 @@ describe('scattercarpet array attributes', function() {
592592
expect(pt.mlc).toBe(mlc[i]);
593593
}
594594
})
595-
.catch(fail)
595+
.catch(failTest)
596596
.then(done);
597597
});
598598
});
@@ -691,7 +691,7 @@ describe('contourcarpet plotting & editing', function() {
691691
.then(function() {
692692
expect(getIndices()).toEqual([1, 2]);
693693
})
694-
.catch(fail)
694+
.catch(failTest)
695695
.then(done);
696696
});
697697
});

test/jasmine/tests/contour_test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var Contour = require('@src/traces/contour');
88
var makeColorMap = require('@src/traces/contour/make_color_map');
99
var colorScales = require('@src/components/colorscale/scales');
1010

11-
var fail = require('../assets/fail_test');
11+
var failTest = require('../assets/fail_test');
1212
var createGraphDiv = require('../assets/create_graph_div');
1313
var destroyGraphDiv = require('../assets/destroy_graph_div');
1414
var checkTicks = require('../assets/custom_assertions').checkTicks;
@@ -388,7 +388,7 @@ describe('contour plotting and editing', function() {
388388
checkTicks('y', ['Jan 102016', 'Jan 24', 'Feb 7', 'Feb 21'], 'date y #2');
389389
expect(gd._fullLayout.yaxis.type).toBe('date');
390390
})
391-
.catch(fail)
391+
.catch(failTest)
392392
.then(done);
393393
});
394394

@@ -407,7 +407,7 @@ describe('contour plotting and editing', function() {
407407
.then(function() {
408408
expect(gd.querySelector('.contourlabels text').textContent).toBe('0.41');
409409
})
410-
.catch(fail)
410+
.catch(failTest)
411411
.then(done);
412412
});
413413

@@ -458,7 +458,7 @@ describe('contour plotting and editing', function() {
458458
contoursIndex: 3
459459
});
460460
})
461-
.catch(fail)
461+
.catch(failTest)
462462
.then(done);
463463
});
464464

@@ -500,7 +500,7 @@ describe('contour plotting and editing', function() {
500500
expect(gd.calcdata[0][0].z).toEqual([[1, 2], [2, 4], [1, 2.5]]);
501501
expect(gd.calcdata[0][0].zmask).toEqual([[1, 1], [0, 1], [1, 0]]);
502502
})
503-
.catch(fail)
503+
.catch(failTest)
504504
.then(done);
505505
});
506506

@@ -530,7 +530,7 @@ describe('contour plotting and editing', function() {
530530
.then(function() {
531531
expect(getIndices()).toEqual([0, 1]);
532532
})
533-
.catch(fail)
533+
.catch(failTest)
534534
.then(done);
535535
});
536536
});

0 commit comments

Comments
 (0)