mirror of
https://github.com/apache/superset.git
synced 2026-04-09 03:16:07 +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
19 lines
451 B
JavaScript
19 lines
451 B
JavaScript
import React from 'react';
|
|
import { expect } from 'chai';
|
|
|
|
import ModalTrigger from '../../../src/components/ModalTrigger';
|
|
|
|
describe('ModalTrigger', () => {
|
|
const defaultProps = {
|
|
triggerNode: <i className="fa fa-link" />,
|
|
modalTitle: 'My Modal Title',
|
|
modalBody: <div>Modal Body</div>,
|
|
};
|
|
|
|
it('is a valid element', () => {
|
|
expect(
|
|
React.isValidElement(<ModalTrigger {...defaultProps} />),
|
|
).to.equal(true);
|
|
});
|
|
});
|