Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79da5a3

Browse files
committed
lint
1 parent 4b7aa2b commit 79da5a3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test/jasmine/tests/gl_plot_interact_basic_test.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,10 @@ function verifyInteractionEffects(tuple) {
4949
}
5050

5151
function testEvents(plot) {
52-
return plot
53-
.then(function(graphDiv) {
54-
var tuple = addEventCallback(graphDiv); // TODO disuse tuple with ES6
55-
verifyInteractionEffects(tuple);
56-
});
52+
return plot.then(function(graphDiv) {
53+
var tuple = addEventCallback(graphDiv);
54+
verifyInteractionEffects(tuple);
55+
});
5756
}
5857

5958
describe('gl3d plots', function() {
@@ -71,13 +70,13 @@ describe('gl3d plots', function() {
7170

7271
it('should respond to drag interactions with mock of unset camera', function(done) {
7372
testEvents(makePlot(gd, require('@mocks/gl3d_scatter3d-connectgaps.json')))
74-
.then(null, failTest) // current linter balks on .catch with 'dot-notation'; fixme a linter
73+
.catch(failTest)
7574
.then(done);
7675
});
7776

7877
it('should respond to drag interactions with mock of partially set camera', function(done) {
7978
testEvents(makePlot(gd, require('@mocks/gl3d_errorbars_zx.json')))
80-
.then(null, failTest)
79+
.catch(failTest)
8180
.then(done);
8281
});
8382
});

0 commit comments

Comments
 (0)