Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Jun 12, 2020
1 parent 27ff24f commit 1f485b6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import { ComponentTemplateListItem } from '../../shared_imports';

import { setupEnvironment, pageHelpers } from './helpers';
import { ComponentTemplateListTestBed } from './helpers/component_template_list.helpers';

const API_BASE_PATH = '/api/index_management';
import { API_BASE_PATH } from './helpers/constants';

const { setup } = pageHelpers.componentTemplateList;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export const API_BASE_PATH = '/api/index_management';
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

import sinon, { SinonFakeServer } from 'sinon';
import { ComponentTemplateListItem, ComponentTemplateDeserialized } from '../../../shared_imports';

const API_BASE_PATH = '/api/index_management';
import { API_BASE_PATH } from './constants';

// Register helpers to mock HTTP Requests
const registerHttpRequestMockHelpers = (server: SinonFakeServer) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ import axios from 'axios';
import axiosXhrAdapter from 'axios/lib/adapters/xhr';

import { HttpSetup } from 'kibana/public';
import { API_BASE_PATH } from '../../../../../../../common/constants';
import {
notificationServiceMock,
docLinksServiceMock,
} from '../../../../../../../../../../src/core/public/mocks';

import { init as initHttpRequests } from './http_requests';
import { ComponentTemplatesProvider } from '../../../component_templates_context';

import { init as initHttpRequests } from './http_requests';
import { API_BASE_PATH } from './constants';

const mockHttpClient = axios.create({ adapter: axiosXhrAdapter });

const appDependencies = {
Expand Down

0 comments on commit 1f485b6

Please sign in to comment.