synapse-admin/tests/features/common/SidePanel.test.js
Manuel Stahl f116bfe1f7 Add component common/SidePanel
Change-Id: If5d1395b4c679717ffae4f68d0c5042adfce9c3f
2019-03-12 08:50:19 +01:00

20 lines
457 B
JavaScript

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);
});
});