mirror of
https://github.com/apache/superset.git
synced 2026-04-22 09:35:23 +00:00
* pull explore actions button group into component * use button component * make sure we render all action buttons * test that embed code is correct * don't need before each * generalize modal trigger for use with plain links or icons
18 lines
449 B
JavaScript
18 lines
449 B
JavaScript
import React from 'react';
|
|
import { expect } from 'chai';
|
|
import { describe, it } from 'mocha';
|
|
|
|
import DisplayQueryButton from '../../../../javascripts/explore/components/DisplayQueryButton';
|
|
|
|
describe('DisplayQueryButton', () => {
|
|
const defaultProps = {
|
|
slice: {
|
|
viewSqlQuery: 'sql query string',
|
|
},
|
|
};
|
|
|
|
it('renders', () => {
|
|
expect(React.isValidElement(<DisplayQueryButton {...defaultProps} />)).to.equal(true);
|
|
});
|
|
});
|