Skip to content

Commit 8e18fe2

Browse files
committed
Fix tests
1 parent f33b2ab commit 8e18fe2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/containers/Section.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Section extends Component {
5353
if (child.plotProps) {
5454
plotProps = child.plotProps;
5555
} else if (
56+
fullContainer &&
5657
fullContainer.type === 'scatter' &&
5758
!fullContainer.opacity &&
5859
child.props.attr === 'opacity'

src/components/containers/__tests__/Section-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('Section', () => {
5555
</TestEditor>
5656
).find('[name="test-section"]');
5757

58-
expect(wrapper.children().length).toBe(1);
58+
expect(wrapper.children().length).toBe(2);
5959
expect(wrapper.find('.extra').text()).toBe('special extra');
6060
});
6161

0 commit comments

Comments
 (0)