Skip to content

Commit

Permalink
Move tests in dashboard into appropriate folders (#55304)
Browse files Browse the repository at this point in the history
* Move tests in dashboard into appropriate folders

* Remove unused imports
  • Loading branch information
sulemanof authored Jan 28, 2020
1 parent 24ac6d2 commit 4d43639
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 36 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
*/
import React from 'react';
import { mountWithIntl } from 'test_utils/enzyme_helpers';
import {
DashboardEmptyScreen,
DashboardEmptyScreenProps,
} from '../np_ready/dashboard_empty_screen';
import { DashboardEmptyScreen, DashboardEmptyScreenProps } from './dashboard_empty_screen';
// @ts-ignore
import { findTestSubject } from '@elastic/eui/lib/test';
import { coreMock } from '../../../../../../core/public/mocks';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import './np_core.test.mocks';
import { createBrowserHistory } from 'history';
import { DashboardStateManager } from './dashboard_state_manager';
import { getSavedDashboardMock } from '../__tests__';
import { getSavedDashboardMock } from './test_utils';
import { InputTimeRange, TimefilterContract, TimeRange } from 'src/plugins/data/public';
import { ViewMode } from 'src/plugins/embeddable/public';
import { createKbnUrlStateStorage } from 'src/plugins/kibana_utils/public';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
* under the License.
*/

// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { searchSourceMock } from '../../../../../../plugins/data/public/search/search_source/mocks';
import { SavedObjectDashboard } from '../saved_dashboard/saved_dashboard';
import { searchSourceMock } from '../../../../../../../plugins/data/public/search/search_source/mocks';
import { SavedObjectDashboard } from '../../saved_dashboard/saved_dashboard';

export function getSavedDashboardMock(
config?: Partial<SavedObjectDashboard>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@
*/

export { getSavedDashboardMock } from './get_saved_dashboard_mock';
export { getEmbeddableFactoryMock } from './get_embeddable_factories_mock';
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
addEmbeddableToDashboardUrl,
getLensUrlFromDashboardAbsoluteUrl,
getUrlVars,
} from '../np_ready/url_helper';
} from './url_helper';

describe('Dashboard URL Helper', () => {
beforeEach(() => {
Expand Down

0 comments on commit 4d43639

Please sign in to comment.