grafana/public/app/features/explore/ExploreDrawer.test.tsx
kay delaney 02b12d3a7b
Explore: Adds query inspector drawer to explore (#26698)
* Explore: Adds query inspector drawer to explore
2020-08-06 16:22:54 +01:00

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');
});
});