We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b533355 commit 02cb4e1Copy full SHA for 02cb4e1
test/jasmine/tests/range_slider_test.js
@@ -1,4 +1,5 @@
1
var Plotly = require('@lib/index');
2
+var Lib = require('@src/lib');
3
var RangeSlider = require('@src/components/rangeslider');
4
var createGraphDiv = require('../assets/create_graph_div');
5
var destroyGraphDiv = require('../assets/destroy_graph_div');
@@ -16,7 +17,9 @@ describe('the range slider', function() {
16
17
beforeEach(function(done) {
18
gd = createGraphDiv();
19
- Plotly.plot(gd, mock.data, mock.layout).then(function() {
20
+ var mockCopy = Lib.extendDeep({}, mock);
21
+
22
+ Plotly.plot(gd, mockCopy.data, mockCopy.layout).then(function() {
23
rangeSlider = document.getElementsByClassName('range-slider')[0];
24
children = rangeSlider.children;
25
done();
0 commit comments