mirror of
https://github.com/apache/superset.git
synced 2026-04-12 04:37:49 +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
20 lines
571 B
JavaScript
20 lines
571 B
JavaScript
import React from 'react';
|
|
import Resizable from 're-resizable';
|
|
import { shallow } from 'enzyme';
|
|
import { expect } from 'chai';
|
|
|
|
import ResizableContainer from '../../../../../src/dashboard/components/resizable/ResizableContainer';
|
|
|
|
describe('ResizableContainer', () => {
|
|
const props = { editMode: false, id: 'id' };
|
|
|
|
function setup(propOverrides) {
|
|
return shallow(<ResizableContainer {...props} {...propOverrides} />);
|
|
}
|
|
|
|
it('should render a Resizable', () => {
|
|
const wrapper = setup();
|
|
expect(wrapper.find(Resizable)).to.have.length(1);
|
|
});
|
|
});
|