grafana/public/app/core/components/sidemenu/TopSectionItem.test.tsx
Torkel Ödegaard d10dbc70a1
Icons: Adds custom icon support ands new panel and interpolation icons (#30277)
* Icons: Adds custom icon support ands new panel and interpolation icons

* Removed icon files

* updated snapshot

* Updates
2021-01-14 15:07:19 +01:00

26 lines
505 B
TypeScript

import React from 'react';
import { mount } from 'enzyme';
import TopSectionItem from './TopSectionItem';
const setup = (propOverrides?: object) => {
const props = Object.assign(
{
link: {
text: 'Hello',
icon: 'cloud',
url: '/asd',
},
},
propOverrides
);
return mount(<TopSectionItem {...props} />);
};
describe('Render', () => {
it('should render component', () => {
const wrapper = setup();
expect(wrapper).toMatchSnapshot();
});
});