diff --git a/x-pack/test/spaces_api_integration/common/suites/spaces/create.ts b/x-pack/test/spaces_api_integration/common/suites/spaces/create.ts index fa9d5b9bc3754e..38e27e6077cbfd 100644 --- a/x-pack/test/spaces_api_integration/common/suites/spaces/create.ts +++ b/x-pack/test/spaces_api_integration/common/suites/spaces/create.ts @@ -5,10 +5,11 @@ */ import expect from 'expect.js'; +import { SuperTest } from 'supertest'; import { getUrlPrefix } from '../../lib/space_test_utils'; import { DescribeFn, TestOptions } from '../../lib/types'; -export function createTestSuiteFactory(esArchiver: any, supertest: any) { +export function createTestSuiteFactory(esArchiver: any, supertest: SuperTest) { const makeCreateTest = (describeFn: DescribeFn) => ( description: string, { diff --git a/x-pack/test/spaces_api_integration/common/suites/spaces/get.ts b/x-pack/test/spaces_api_integration/common/suites/spaces/get.ts index 17d2c10fd48ebe..a8f9ab8c97cfeb 100644 --- a/x-pack/test/spaces_api_integration/common/suites/spaces/get.ts +++ b/x-pack/test/spaces_api_integration/common/suites/spaces/get.ts @@ -4,10 +4,11 @@ * you may not use this file except in compliance with the Elastic License. */ import expect from 'expect.js'; +import { SuperAgent } from 'superagent'; import { getUrlPrefix } from '../../lib/space_test_utils'; import { DescribeFn, TestOptions } from '../../lib/types'; -export function getTestSuiteFactory(esArchiver: any, supertest: any) { +export function getTestSuiteFactory(esArchiver: any, supertest: SuperAgent) { const nonExistantSpaceId = 'not-a-space'; const makeGetTest = (describeFn: DescribeFn) => (