Skip to content

Commit e8b7afa

Browse files
committed
test: add case for scatter Plotly.restyle(gd, 'visible', false)
1 parent 83d6888 commit e8b7afa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/jasmine/tests/cartesian_test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ describe('restyle', function() {
105105

106106
// The second has been recreated so is different:
107107
expect(firstToNext).not.toBe(secondToNext);
108+
109+
return Plotly.restyle(gd, 'visible', false);
110+
}).then(function() {
111+
expect(d3.selectAll('g.trace.scatter').size()).toEqual(0);
112+
108113
}).then(done);
109114
});
110115

0 commit comments

Comments
 (0)