File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,10 @@ function verifyInteractionEffects(tuple) {
4949}
5050
5151function 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
5958describe ( '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} ) ;
You can’t perform that action at this time.
0 commit comments