Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Mar 16, 2020
1 parent 570162b commit 6d9f642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x-pack/test/api_integration/apis/uptime/feature_controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import expect from '@kbn/expect';
import { FtrProviderContext } from '../../ftr_provider_context';
import { PINGS_DATE_RANGE_END, PINGS_DATE_RANGE_START } from './constants';
import { REST_API_URLS } from '../../../../legacy/plugins/uptime/common/constants';
import { API_URLS } from '../../../../legacy/plugins/uptime/common/constants';

export default function featureControlsTests({ getService }: FtrProviderContext) {
const supertest = getService('supertestWithoutAuth');
Expand All @@ -30,7 +30,7 @@ export default function featureControlsTests({ getService }: FtrProviderContext)
const basePath = spaceId ? `/s/${spaceId}` : '';

return await supertest
.get(basePath + REST_API_URLS.INDEX_STATUS)
.get(basePath + API_URLS.INDEX_STATUS)
.auth(username, password)
.set('kbn-xsrf', 'foo')
.then((response: any) => ({ error: undefined, response }))
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/api_integration/apis/uptime/rest/doc_count.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
*/
import { FtrProviderContext } from '../../../ftr_provider_context';
import { expectFixtureEql } from '../graphql/helpers/expect_fixture_eql';
import { REST_API_URLS } from '../../../../../legacy/plugins/uptime/common/constants';
import { API_URLS } from '../../../../../legacy/plugins/uptime/common/constants';

export default function({ getService }: FtrProviderContext) {
describe('docCount query', () => {
const supertest = getService('supertest');

it(`will fetch the index's count`, async () => {
const apiResponse = await supertest.get(REST_API_URLS.INDEX_STATUS);
const apiResponse = await supertest.get(API_URLS.INDEX_STATUS);
const data = apiResponse.body;
expectFixtureEql(data, 'doc_count');
});
Expand Down

0 comments on commit 6d9f642

Please sign in to comment.