mirror of
https://github.com/apache/superset.git
synced 2026-04-22 17:45:21 +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
409 B
JavaScript
18 lines
409 B
JavaScript
import React from 'react';
|
|
import { expect } from 'chai';
|
|
import { describe, it } from 'mocha';
|
|
|
|
import CopyToClipboard from '../../../javascripts/components/CopyToClipboard';
|
|
|
|
describe('CopyToClipboard', () => {
|
|
const defaultProps = {
|
|
text: 'some text to copy',
|
|
};
|
|
|
|
it('renders', () => {
|
|
expect(
|
|
React.isValidElement(<CopyToClipboard {...defaultProps} />)
|
|
).to.equal(true);
|
|
});
|
|
});
|