mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +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
22 lines
649 B
JavaScript
22 lines
649 B
JavaScript
import React from 'react';
|
|
import { Panel, Row, Tab } from 'react-bootstrap';
|
|
import { shallow } from 'enzyme';
|
|
import { expect } from 'chai';
|
|
|
|
import Welcome from '../../../src/welcome/Welcome';
|
|
|
|
describe('Welcome', () => {
|
|
const mockedProps = {};
|
|
it('is valid', () => {
|
|
expect(
|
|
React.isValidElement(<Welcome {...mockedProps} />),
|
|
).to.equal(true);
|
|
});
|
|
it('renders 4 Tab, Panel, and Row components', () => {
|
|
const wrapper = shallow(<Welcome {...mockedProps} />);
|
|
expect(wrapper.find(Tab)).to.have.length(3);
|
|
expect(wrapper.find(Panel)).to.have.length(3);
|
|
expect(wrapper.find(Row)).to.have.length(3);
|
|
});
|
|
});
|