File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ var constants = require('@src/components/updatemenus/constants');
44var d3 = require ( 'd3' ) ;
55var Plotly = require ( '@lib' ) ;
66var Lib = require ( '@src/lib' ) ;
7+ var Events = require ( '@src/lib/events' ) ;
78var createGraphDiv = require ( '../assets/create_graph_div' ) ;
89var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
910var TRANSITION_DELAY = 100 ;
@@ -220,6 +221,10 @@ describe('update menus buttons', function() {
220221 beforeEach ( function ( done ) {
221222 gd = createGraphDiv ( ) ;
222223
224+ // bump event max listeners to remove console warnings
225+ Events . init ( gd ) ;
226+ gd . _internalEv . setMaxListeners ( 20 ) ;
227+
223228 // move update menu #2 to click on them separately
224229 var mockCopy = Lib . extendDeep ( { } , mock ) ;
225230 mockCopy . layout . updatemenus [ 1 ] . x = 1 ;
You can’t perform that action at this time.
0 commit comments