mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
New Landing Page v1.0 (#4463)
* Updated welcome landing page * fixed test and linting * linting * addressing comments * fix test * fix test * remove unneeded var * add magic comments
This commit is contained in:
committed by
Maxime Beauchemin
parent
56f65158a2
commit
11ea83ecf1
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Panel, Col, Row } from 'react-bootstrap';
|
||||
import { Panel, Row, Tab } from 'react-bootstrap';
|
||||
import { shallow } from 'enzyme';
|
||||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
@@ -13,10 +13,10 @@ describe('App', () => {
|
||||
React.isValidElement(<App {...mockedProps} />),
|
||||
).to.equal(true);
|
||||
});
|
||||
it('renders 2 Col', () => {
|
||||
it('renders 4 Tab, Panel, and Row components', () => {
|
||||
const wrapper = shallow(<App {...mockedProps} />);
|
||||
expect(wrapper.find(Panel)).to.have.length(1);
|
||||
expect(wrapper.find(Row)).to.have.length(1);
|
||||
expect(wrapper.find(Col)).to.have.length(2);
|
||||
expect(wrapper.find(Tab)).to.have.length(3);
|
||||
expect(wrapper.find(Panel)).to.have.length(3);
|
||||
expect(wrapper.find(Row)).to.have.length(3);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user