We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5101174 commit 34cf22eCopy full SHA for 34cf22e
test/jasmine/tests/mapbox_test.js
@@ -295,9 +295,10 @@ describe('mapbox plots', function() {
295
}).then(function() {
296
expect(countVisibleTraces(gd, modes)).toEqual(2);
297
298
- mock.data[0].visible = false;
+ var mockCopy = Lib.extendDeep({}, mock);
299
+ mockCopy.data[0].visible = false;
300
- return Plotly.newPlot(gd, mock.data, mock.layout);
301
+ return Plotly.newPlot(gd, mockCopy.data, mockCopy.layout);
302
303
expect(countVisibleTraces(gd, modes)).toEqual(1);
304
0 commit comments