mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
test(frontend): use absolute path for src imports (#9761)
* test(frontend): use absolute path for src imports * Upgrade prettier, fix eslint
This commit is contained in:
@@ -22,10 +22,11 @@ import {
|
||||
REMOVE_FILTER,
|
||||
CHANGE_FILTER,
|
||||
UPDATE_DASHBOARD_FILTERS_SCOPE,
|
||||
} from '../../../../src/dashboard/actions/dashboardFilters';
|
||||
} from 'src/dashboard/actions/dashboardFilters';
|
||||
import dashboardFiltersReducer, {
|
||||
DASHBOARD_FILTER_SCOPE_GLOBAL,
|
||||
} from '../../../../src/dashboard/reducers/dashboardFilters';
|
||||
} from 'src/dashboard/reducers/dashboardFilters';
|
||||
import * as activeDashboardFilters from 'src/dashboard/util/activeDashboardFilters';
|
||||
import {
|
||||
emptyFilters,
|
||||
dashboardFilters,
|
||||
@@ -36,7 +37,6 @@ import {
|
||||
column,
|
||||
} from '../fixtures/mockSliceEntities';
|
||||
import { filterComponent } from '../fixtures/mockDashboardLayout';
|
||||
import * as activeDashboardFilters from '../../../../src/dashboard/util/activeDashboardFilters';
|
||||
|
||||
describe('dashboardFilters reducer', () => {
|
||||
const form_data = sliceEntitiesForDashboard.slices[filterId].form_data;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import layoutReducer from '../../../../src/dashboard/reducers/dashboardLayout';
|
||||
import layoutReducer from 'src/dashboard/reducers/dashboardLayout';
|
||||
|
||||
import {
|
||||
UPDATE_COMPONENTS,
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
MOVE_COMPONENT,
|
||||
CREATE_TOP_LEVEL_TABS,
|
||||
DELETE_TOP_LEVEL_TABS,
|
||||
} from '../../../../src/dashboard/actions/dashboardLayout';
|
||||
} from 'src/dashboard/actions/dashboardLayout';
|
||||
|
||||
import {
|
||||
CHART_TYPE,
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
ROW_TYPE,
|
||||
TAB_TYPE,
|
||||
TABS_TYPE,
|
||||
} from '../../../../src/dashboard/util/componentTypes';
|
||||
} from 'src/dashboard/util/componentTypes';
|
||||
|
||||
import {
|
||||
DASHBOARD_ROOT_ID,
|
||||
@@ -42,7 +42,7 @@ import {
|
||||
NEW_COMPONENTS_SOURCE_ID,
|
||||
NEW_TABS_ID,
|
||||
NEW_ROW_ID,
|
||||
} from '../../../../src/dashboard/util/constants';
|
||||
} from 'src/dashboard/util/constants';
|
||||
|
||||
describe('dashboardLayout reducer', () => {
|
||||
it('should return initial state for unrecognized actions', () => {
|
||||
|
||||
@@ -27,10 +27,10 @@ import {
|
||||
SET_UNSAVED_CHANGES,
|
||||
TOGGLE_EXPAND_SLICE,
|
||||
TOGGLE_FAVE_STAR,
|
||||
} from '../../../../src/dashboard/actions/dashboardState';
|
||||
} from 'src/dashboard/actions/dashboardState';
|
||||
|
||||
import dashboardStateReducer from '../../../../src/dashboard/reducers/dashboardState';
|
||||
import { BUILDER_PANE_TYPE } from '../../../../src/dashboard/util/constants';
|
||||
import dashboardStateReducer from 'src/dashboard/reducers/dashboardState';
|
||||
import { BUILDER_PANE_TYPE } from 'src/dashboard/util/constants';
|
||||
|
||||
describe('dashboardState reducer', () => {
|
||||
it('should return initial state', () => {
|
||||
|
||||
@@ -20,9 +20,9 @@ import {
|
||||
FETCH_ALL_SLICES_FAILED,
|
||||
FETCH_ALL_SLICES_STARTED,
|
||||
SET_ALL_SLICES,
|
||||
} from '../../../../src/dashboard/actions/sliceEntities';
|
||||
} from 'src/dashboard/actions/sliceEntities';
|
||||
|
||||
import sliceEntitiesReducer from '../../../../src/dashboard/reducers/sliceEntities';
|
||||
import sliceEntitiesReducer from 'src/dashboard/reducers/sliceEntities';
|
||||
|
||||
describe('sliceEntities reducer', () => {
|
||||
it('should return initial state', () => {
|
||||
|
||||
Reference in New Issue
Block a user