feat: add download as image button to explore (#10297)

This commit is contained in:
Erik Ritter
2020-07-14 16:40:12 -07:00
committed by GitHub
parent 518dbd05b6
commit 6ae9f3af8e
8 changed files with 32 additions and 7 deletions

View File

@@ -20,6 +20,7 @@ import React from 'react';
import { mount } from 'enzyme';
import ModalTrigger from 'src/components/ModalTrigger';
import { DisplayQueryButton } from 'src/explore/components/DisplayQueryButton';
import { MenuItem } from 'react-bootstrap';
describe('DisplayQueryButton', () => {
const defaultProps = {
@@ -43,5 +44,6 @@ describe('DisplayQueryButton', () => {
it('renders a dropdown', () => {
const wrapper = mount(<DisplayQueryButton {...defaultProps} />);
expect(wrapper.find(ModalTrigger)).toHaveLength(3);
expect(wrapper.find(MenuItem)).toHaveLength(5);
});
});