diff --git a/test/unit/state/middleware/hooks/hooks.spec.js b/test/unit/state/middleware/hooks.spec.js similarity index 97% rename from test/unit/state/middleware/hooks/hooks.spec.js rename to test/unit/state/middleware/hooks.spec.js index 16b577256a..8b1c713abe 100644 --- a/test/unit/state/middleware/hooks/hooks.spec.js +++ b/test/unit/state/middleware/hooks.spec.js @@ -1,8 +1,8 @@ // @flow import invariant from 'tiny-invariant'; -import middleware from '../../../../../src/state/middleware/hooks'; -import messagePreset from '../../../../../src/state/middleware/util/message-preset'; -import { add } from '../../../../../src/state/position'; +import middleware from '../../../../src/state/middleware/hooks'; +import messagePreset from '../../../../src/state/middleware/util/message-preset'; +import { add } from '../../../../src/state/position'; import { clean, prepare, @@ -15,10 +15,10 @@ import { type InitialPublishArgs, type MoveArgs, type BulkReplaceArgs, -} from '../../../../../src/state/action-creators'; -import createStore from '../create-store'; -import { getPreset } from '../../../../utils/dimension'; -import getViewport from '../../../../../src/view/window/get-viewport'; +} from '../../../../src/state/action-creators'; +import createStore from './util/create-store'; +import { getPreset } from '../../../utils/dimension'; +import getViewport from '../../../../src/view/window/get-viewport'; import type { DraggableLocation, Store, diff --git a/test/unit/state/middleware/create-store.js b/test/unit/state/middleware/util/create-store.js similarity index 64% rename from test/unit/state/middleware/create-store.js rename to test/unit/state/middleware/util/create-store.js index dc7bc7259f..69c44d973a 100644 --- a/test/unit/state/middleware/create-store.js +++ b/test/unit/state/middleware/util/create-store.js @@ -1,7 +1,7 @@ // @flow import { createStore, compose, applyMiddleware } from 'redux'; -import reducer from '../../../../src/state/reducer'; -import type { Store } from '../../../../src/types'; +import reducer from '../../../../../src/state/reducer'; +import type { Store } from '../../../../../src/types'; export default (...middleware: mixed[]): Store => createStore( reducer,