mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
23 lines
436 B
TypeScript
23 lines
436 B
TypeScript
|
import React from 'react';
|
||
|
import { shallow } from 'enzyme';
|
||
|
import TopSectionItem from './TopSectionItem';
|
||
|
|
||
|
const setup = (propOverrides?: object) => {
|
||
|
const props = Object.assign(
|
||
|
{
|
||
|
link: {},
|
||
|
},
|
||
|
propOverrides
|
||
|
);
|
||
|
|
||
|
return shallow(<TopSectionItem {...props} />);
|
||
|
};
|
||
|
|
||
|
describe('Render', () => {
|
||
|
it('should render component', () => {
|
||
|
const wrapper = setup();
|
||
|
|
||
|
expect(wrapper).toMatchSnapshot();
|
||
|
});
|
||
|
});
|