Skip to content

Commit bd61c54

Browse files
committed
sub fail -> failTest
1 parent c9711dc commit bd61c54

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/jasmine/tests/scatter_test.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var Plotly = require('@lib/index');
88
var createGraphDiv = require('../assets/create_graph_div');
99
var destroyGraphDiv = require('../assets/destroy_graph_div');
1010
var customAssertions = require('../assets/custom_assertions');
11-
var fail = require('../assets/fail_test');
11+
var failTest = require('../assets/fail_test');
1212

1313
var assertClip = customAssertions.assertClip;
1414
var assertNodeDisplay = customAssertions.assertNodeDisplay;
@@ -561,7 +561,7 @@ describe('end-to-end scatter tests', function() {
561561
expect(d3.select(this).classed('plotly-customdata')).toBe(false);
562562
});
563563

564-
}).catch(fail).then(done);
564+
}).catch(failTest).then(done);
565565
});
566566

567567
it('adds "textpoint" class to scatter text points', function(done) {
@@ -572,7 +572,7 @@ describe('end-to-end scatter tests', function() {
572572
text: ['a', 'b', 'c']
573573
}]).then(function() {
574574
expect(Plotly.d3.selectAll('.textpoint').size()).toBe(3);
575-
}).catch(fail).then(done);
575+
}).catch(failTest).then(done);
576576
});
577577

578578
it('should remove all point and text nodes on blank data', function(done) {
@@ -625,7 +625,7 @@ describe('end-to-end scatter tests', function() {
625625
assertNodeCnt(3, 3);
626626
assertText(['A', 'B', 'C']);
627627
})
628-
.catch(fail)
628+
.catch(failTest)
629629
.then(done);
630630
});
631631

@@ -683,7 +683,7 @@ describe('end-to-end scatter tests', function() {
683683
['apple', 'banana', 'clementine']
684684
);
685685
})
686-
.catch(fail)
686+
.catch(failTest)
687687
.then(done);
688688
});
689689

@@ -727,7 +727,7 @@ describe('end-to-end scatter tests', function() {
727727
['apple', 'banana', 'clementine']
728728
);
729729
})
730-
.catch(fail)
730+
.catch(failTest)
731731
.then(done);
732732
});
733733

@@ -763,7 +763,7 @@ describe('end-to-end scatter tests', function() {
763763
['apple', 'banana', 'dragon fruit']
764764
);
765765
})
766-
.catch(fail)
766+
.catch(failTest)
767767
.then(done);
768768
});
769769

@@ -785,7 +785,7 @@ describe('end-to-end scatter tests', function() {
785785
);
786786
}).then(function() {
787787
expect(fill()).toEqual('rgb(0, 0, 255)');
788-
}).catch(fail).then(done);
788+
}).catch(failTest).then(done);
789789
});
790790

791791
it('clears fills tonext when either trace is emptied out', function(done) {
@@ -828,7 +828,7 @@ describe('end-to-end scatter tests', function() {
828828
.then(function() {
829829
checkFill(false, 'null out both traces');
830830
})
831-
.catch(fail)
831+
.catch(failTest)
832832
.then(done);
833833
});
834834

@@ -875,7 +875,7 @@ describe('end-to-end scatter tests', function() {
875875
[40, 30, 20]
876876
);
877877
})
878-
.catch(fail)
878+
.catch(failTest)
879879
.then(done);
880880
});
881881
});
@@ -944,7 +944,7 @@ describe('scatter hoverPoints', function() {
944944
expect(pts[1].text).toEqual('banana', 'hover text');
945945
expect(pts[2].text).toEqual('orange', 'hover text');
946946
})
947-
.catch(fail)
947+
.catch(failTest)
948948
.then(done);
949949
});
950950
});
@@ -1073,7 +1073,7 @@ describe('Test Scatter.style', function() {
10731073
'selected pt 1 w/ set unselected.marker.opacity'
10741074
);
10751075
})
1076-
.catch(fail)
1076+
.catch(failTest)
10771077
.then(done);
10781078
});
10791079

@@ -1160,7 +1160,7 @@ describe('Test Scatter.style', function() {
11601160
'selected pts 0-2 w/ set selected.marker.color'
11611161
);
11621162
})
1163-
.catch(fail)
1163+
.catch(failTest)
11641164
.then(done);
11651165
});
11661166

@@ -1204,7 +1204,7 @@ describe('Test Scatter.style', function() {
12041204
'selected pt 0 w/ set unselected.marker.size'
12051205
);
12061206
})
1207-
.catch(fail)
1207+
.catch(failTest)
12081208
.then(done);
12091209
});
12101210

@@ -1287,7 +1287,7 @@ describe('Test Scatter.style', function() {
12871287
'selected pts 0-2 w/ set selected.textfont.color'
12881288
);
12891289
})
1290-
.catch(fail)
1290+
.catch(failTest)
12911291
.then(done);
12921292
});
12931293
});
@@ -1433,7 +1433,7 @@ describe('Test scatter *clipnaxis*:', function() {
14331433
[true, 1]
14341434
);
14351435
})
1436-
.catch(fail)
1436+
.catch(failTest)
14371437
.then(done);
14381438
});
14391439
});

0 commit comments

Comments
 (0)