Add component common/SidePanel

Change-Id: If5d1395b4c679717ffae4f68d0c5042adfce9c3f
This commit is contained in:
Manuel Stahl
2019-02-07 14:09:52 +01:00
parent 2db689a16d
commit f116bfe1f7
5 changed files with 109 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import React from 'react';
import { shallow } from 'enzyme';
import { SidePanel } from '../../../src/features/common/SidePanel';
describe('common/SidePanel', () => {
it('renders node with correct class name', () => {
const props = {
common: {},
actions: {},
};
const renderedComponent = shallow(
<SidePanel {...props} />
);
expect(
renderedComponent.find('.common-side-panel').length
).toBe(1);
});
});