Skip to content

Commit

Permalink
Create copy of mock
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtusz committed Apr 25, 2016
1 parent b533355 commit 02cb4e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/jasmine/tests/range_slider_test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var Plotly = require('@lib/index');
var Lib = require('@src/lib');
var RangeSlider = require('@src/components/rangeslider');
var createGraphDiv = require('../assets/create_graph_div');
var destroyGraphDiv = require('../assets/destroy_graph_div');
Expand All @@ -16,7 +17,9 @@ describe('the range slider', function() {
beforeEach(function(done) {
gd = createGraphDiv();

Plotly.plot(gd, mock.data, mock.layout).then(function() {
var mockCopy = Lib.extendDeep({}, mock);

Plotly.plot(gd, mockCopy.data, mockCopy.layout).then(function() {

This comment has been minimized.

Copy link
@etpinard

etpinard Apr 26, 2016

Contributor

🍻

rangeSlider = document.getElementsByClassName('range-slider')[0];
children = rangeSlider.children;
done();
Expand Down

0 comments on commit 02cb4e1

Please sign in to comment.