mirror of
https://github.com/grafana/grafana.git
synced 2025-01-15 19:22:34 -06:00
02b12d3a7b
* Explore: Adds query inspector drawer to explore
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');
|
|
});
|
|
});
|