mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 08:35:43 -06:00
12 lines
382 B
TypeScript
12 lines
382 B
TypeScript
|
import React from 'react';
|
||
|
import { mount } from 'enzyme';
|
||
|
import { ExploreDrawer } from './ExploreDrawer';
|
||
|
|
||
|
describe('<ExploreDrawer />', () => {
|
||
|
it('renders child element', () => {
|
||
|
const childElement = <div>Child element</div>;
|
||
|
const wrapper = mount(<ExploreDrawer width={400}>{childElement}</ExploreDrawer>);
|
||
|
expect(wrapper.text()).toBe('Child element');
|
||
|
});
|
||
|
});
|