Skip to content

Commit

Permalink
fixup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Jul 18, 2019
1 parent a95bac3 commit bf794f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/jasmine/assets/double_click.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var click = require('./click');
var getNodeCoords = require('./get_node_coords');
var DBLCLICKDELAY = require('../../../src/constants/interactions').DBLCLICKDELAY;
var DBLCLICKDELAY = require('@src/plot_api/plot_config').dfltConfig.doubleClickDelay;

/*
* Double click on a point.
Expand Down
3 changes: 3 additions & 0 deletions test/jasmine/tests/dragelement_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ describe('dragElement', function() {
this.gd._fullLayout = {
_hoverlayer: d3.select(this.hoverlayer)
};
this.gd._context = {
doubleClickDelay: 300
};
this.element.innerHTML = 'drag element';

this.gd.appendChild(this.element);
Expand Down

0 comments on commit bf794f1

Please sign in to comment.