mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Icons: Adds custom icon support ands new panel and interpolation icons * Removed icon files * updated snapshot * Updates
26 lines
505 B
TypeScript
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();
|
|
});
|
|
});
|