Add component common/SidePanel
Change-Id: If5d1395b4c679717ffae4f68d0c5042adfce9c3f
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user