mirror of
https://github.com/apache/superset.git
synced 2026-04-13 21:24:28 +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
29 lines
885 B
JavaScript
29 lines
885 B
JavaScript
import React from 'react';
|
|
import { shallow } from 'enzyme';
|
|
import { expect } from 'chai';
|
|
|
|
import ResizableHandle from '../../../../../src/dashboard/components/resizable/ResizableHandle';
|
|
|
|
describe('ResizableHandle', () => {
|
|
it('should render a right resize handle', () => {
|
|
const wrapper = shallow(<ResizableHandle.right />);
|
|
expect(wrapper.find('.resize-handle.resize-handle--right')).to.have.length(
|
|
1,
|
|
);
|
|
});
|
|
|
|
it('should render a bottom resize handle', () => {
|
|
const wrapper = shallow(<ResizableHandle.bottom />);
|
|
expect(wrapper.find('.resize-handle.resize-handle--bottom')).to.have.length(
|
|
1,
|
|
);
|
|
});
|
|
|
|
it('should render a bottomRight resize handle', () => {
|
|
const wrapper = shallow(<ResizableHandle.bottomRight />);
|
|
expect(
|
|
wrapper.find('.resize-handle.resize-handle--bottom-right'),
|
|
).to.have.length(1);
|
|
});
|
|
});
|