mirror of
https://github.com/apache/superset.git
synced 2026-04-10 11:55:24 +00:00
* [lint] turn no-undef back on, set browser, cypress, and mocha env's, and fix issues * [lint] fix undefined var in TimeTable.jsx
17 lines
364 B
JavaScript
17 lines
364 B
JavaScript
import React from 'react';
|
|
import { expect } from 'chai';
|
|
|
|
import CopyToClipboard from '../../../src/components/CopyToClipboard';
|
|
|
|
describe('CopyToClipboard', () => {
|
|
const defaultProps = {
|
|
text: 'some text to copy',
|
|
};
|
|
|
|
it('renders', () => {
|
|
expect(
|
|
React.isValidElement(<CopyToClipboard {...defaultProps} />),
|
|
).to.equal(true);
|
|
});
|
|
});
|