mirror of
https://github.com/apache/superset.git
synced 2026-04-09 03:16:07 +00:00
* bumping the js libs * New linting rules * More linting * More * Done linting * npm >=4.5.0 * Bumping node * Tweaking the build * Fixing the damn build * Fixing the apps
20 lines
497 B
JavaScript
20 lines
497 B
JavaScript
import React from 'react';
|
|
import { expect } from 'chai';
|
|
import { describe, it } from 'mocha';
|
|
|
|
import ModalTrigger from '../../../javascripts/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);
|
|
});
|
|
});
|