metadata-based-explorer1
Version:
Box UI Elements
17 lines (13 loc) • 470 B
JavaScript
import React from 'react';
import { shallow } from 'enzyme';
import SidebarContent from '../SidebarContent';
describe('elements/content-sidebar/SidebarContent', () => {
const getWrapper = props => shallow(<SidebarContent {...props} />);
test('should render sidebar content component', () => {
const wrapper = getWrapper({
title: 'title',
children: 'children',
});
expect(wrapper).toMatchSnapshot();
});
});