Skip to content

Commit

Permalink
Fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Mar 4, 2022
1 parent 90e7bee commit 51b02f0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/plugins/visualizations/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
{ "path": "../home/tsconfig.json" },
{ "path": "../share/tsconfig.json" },
{ "path": "../presentation_util/tsconfig.json" },
{ "path": "../screenshot_mode/tsconfig.json" },
{ "path": "../../../x-pack/plugins/spaces/tsconfig.json" }
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
import { format as formatUrl } from 'url';

import supertest from 'supertest';
import type { FtrProviderContext } from '../ftr_provider_context';

/**
* Supertest provider that doesn't include user credentials into base URL that is passed
* to the supertest.
*/
export function EsSupertestWithoutAuthProvider({ getService }: FtrProviderContext) {
export function EsSupertestWithoutAuthProvider({ getService }) {
const config = getService('config');
const elasticsearchServerConfig = config.get('servers.elasticsearch');

Expand Down
2 changes: 2 additions & 0 deletions x-pack/test/api_integration/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import { services as kibanaApiIntegrationServices } from '../../../../test/api_integration/services';
import { services as commonServices } from '../../common/services';

// @ts-ignore not ts yet
import { EsSupertestWithoutAuthProvider } from './es_supertest_without_auth';
// @ts-ignore not ts yet
import { SupertestWithoutAuthProvider } from './supertest_without_auth';

import { UsageAPIProvider } from './usage_api';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
import { format as formatUrl } from 'url';

import supertest from 'supertest';
import type { FtrProviderContext } from '../ftr_provider_context';

/**
* supertest provider that doesn't include user credentials into base URL that is passed
* to the supertest. It's used to test API behaviour for not yet authenticated user.
*/
export function SupertestWithoutAuthProvider({ getService }: FtrProviderContext) {
export function SupertestWithoutAuthProvider({ getService }) {
const config = getService('config');
const kibanaServerConfig = config.get('servers.kibana');

Expand Down

0 comments on commit 51b02f0

Please sign in to comment.