mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
This reverts commit ed3360b135.
This commit is contained in:
@@ -21,8 +21,8 @@ import { shallow } from 'enzyme';
|
||||
|
||||
import { defaultQueryEditor, initialState, queries, table } from './fixtures';
|
||||
import {
|
||||
SQL_EDITOR_VERTICAL_GUTTER_HEIGHT,
|
||||
SQL_EDITOR_VERTICAL_GUTTER_MARGIN,
|
||||
SQL_EDITOR_GUTTER_HEIGHT,
|
||||
SQL_EDITOR_GUTTER_MARGIN,
|
||||
SQL_TOOLBAR_HEIGHT,
|
||||
} from '../../../src/SqlLab/constants';
|
||||
import AceEditorWrapper from '../../../src/SqlLab/components/AceEditorWrapper';
|
||||
@@ -73,8 +73,8 @@ describe('SqlEditor', () => {
|
||||
const totalSize = parseFloat(wrapper.find(AceEditorWrapper).props().height)
|
||||
+ wrapper.find(SouthPane).props().height
|
||||
+ SQL_TOOLBAR_HEIGHT
|
||||
+ (SQL_EDITOR_VERTICAL_GUTTER_MARGIN * 2)
|
||||
+ SQL_EDITOR_VERTICAL_GUTTER_HEIGHT;
|
||||
+ (SQL_EDITOR_GUTTER_MARGIN * 2)
|
||||
+ SQL_EDITOR_GUTTER_HEIGHT;
|
||||
expect(totalSize).toEqual(MOCKED_SQL_EDITOR_HEIGHT);
|
||||
});
|
||||
it('does not overflow the editor window after resizing', () => {
|
||||
@@ -83,8 +83,8 @@ describe('SqlEditor', () => {
|
||||
const totalSize = parseFloat(wrapper.find(AceEditorWrapper).props().height)
|
||||
+ wrapper.find(SouthPane).props().height
|
||||
+ SQL_TOOLBAR_HEIGHT
|
||||
+ (SQL_EDITOR_VERTICAL_GUTTER_MARGIN * 2)
|
||||
+ SQL_EDITOR_VERTICAL_GUTTER_HEIGHT;
|
||||
+ (SQL_EDITOR_GUTTER_MARGIN * 2)
|
||||
+ SQL_EDITOR_GUTTER_HEIGHT;
|
||||
expect(totalSize).toEqual(450);
|
||||
});
|
||||
it('render a LimitControl with default limit', () => {
|
||||
|
||||
Reference in New Issue
Block a user