From 02cd2d54adb6ad2d1848bdc84aed1a84ed542a94 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 2 Dec 2021 17:24:49 +0100 Subject: [PATCH] Fix wrong imports --- .../ra-core/src/controller/details/useEditController.spec.tsx | 2 +- .../src/controller/input/ReferenceArrayInputController.spec.tsx | 2 +- packages/ra-core/src/form/useInput.spec.tsx | 2 +- packages/ra-ui-materialui/src/input/NumberInput.spec.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/ra-core/src/controller/details/useEditController.spec.tsx b/packages/ra-core/src/controller/details/useEditController.spec.tsx index 9bcbc703a94..458d5dd8cfe 100644 --- a/packages/ra-core/src/controller/details/useEditController.spec.tsx +++ b/packages/ra-core/src/controller/details/useEditController.spec.tsx @@ -6,7 +6,7 @@ import { EditController } from './EditController'; import { renderWithRedux } from 'ra-test'; import { DataProviderContext } from '../../dataProvider'; import { DataProvider } from '../../types'; -import { SaveContextProvider } from '../../../esm'; +import { SaveContextProvider } from '../../controller'; describe('useEditController', () => { const defaultProps = { diff --git a/packages/ra-core/src/controller/input/ReferenceArrayInputController.spec.tsx b/packages/ra-core/src/controller/input/ReferenceArrayInputController.spec.tsx index 94e5c23b7ba..9a09ec1242b 100644 --- a/packages/ra-core/src/controller/input/ReferenceArrayInputController.spec.tsx +++ b/packages/ra-core/src/controller/input/ReferenceArrayInputController.spec.tsx @@ -6,7 +6,7 @@ import { renderWithRedux } from 'ra-test'; import ReferenceArrayInputController, { ReferenceArrayInputControllerChildrenFuncParams, } from './ReferenceArrayInputController'; -import { CRUD_GET_MATCHING, CRUD_GET_MANY } from '../../../lib'; +import { CRUD_GET_MATCHING, CRUD_GET_MANY } from '../../actions'; import { SORT_ASC } from '../../reducer/admin/resource/list/queryReducer'; describe('', () => { diff --git a/packages/ra-core/src/form/useInput.spec.tsx b/packages/ra-core/src/form/useInput.spec.tsx index b8ae7186320..5705913aa08 100644 --- a/packages/ra-core/src/form/useInput.spec.tsx +++ b/packages/ra-core/src/form/useInput.spec.tsx @@ -5,7 +5,7 @@ import { Form, useFormState } from 'react-final-form'; import FormWithRedirect from './FormWithRedirect'; import useInput, { InputProps } from './useInput'; import { required } from './validate'; -import { renderWithRedux } from '../../../ra-test/esm'; +import { renderWithRedux } from 'ra-test'; const Input: FunctionComponent< { children: (props: any) => ReactElement } & InputProps diff --git a/packages/ra-ui-materialui/src/input/NumberInput.spec.tsx b/packages/ra-ui-materialui/src/input/NumberInput.spec.tsx index 3421c345113..1cdba0ac584 100644 --- a/packages/ra-ui-materialui/src/input/NumberInput.spec.tsx +++ b/packages/ra-ui-materialui/src/input/NumberInput.spec.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { render, fireEvent } from '@testing-library/react'; import { Form } from 'react-final-form'; -import { required } from 'ra-core/lib'; +import { required } from 'ra-core'; import NumberInput from './NumberInput';