Skip to content

Commit f991039

Browse files
authored
Merge pull request #2109 from plotly/fixup-choropleth-select-test
Fixup choropleth select test
2 parents 679c0d3 + 1760d66 commit f991039

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/jasmine/tests/select_test.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,11 @@ describe('Test select box and lasso per trace:', function() {
717717
addInvisible(fig, false);
718718

719719
// add a trace with no locations which will then make trace invisible, lacking DOM elements
720-
fig.data.push(Lib.extendDeep({}, fig.data[0]));
721-
fig.data[1].text = [];
722-
fig.data[1].locations = [];
723-
fig.data[1].z = [];
720+
var emptyChoroplethTrace = Lib.extendDeep({}, fig.data[0]);
721+
emptyChoroplethTrace.text = [];
722+
emptyChoroplethTrace.locations = [];
723+
emptyChoroplethTrace.z = [];
724+
fig.data.push(emptyChoroplethTrace);
724725

725726
Plotly.plot(gd, fig)
726727
.then(function() {

0 commit comments

Comments
 (0)