Skip to content

Commit

Permalink
add missing superagent type
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Sep 6, 2018
1 parent 4afacc0 commit 6410f72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>) {
const makeCreateTest = (describeFn: DescribeFn) => (
description: string,
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>) {
const nonExistantSpaceId = 'not-a-space';

const makeGetTest = (describeFn: DescribeFn) => (
Expand Down

0 comments on commit 6410f72

Please sign in to comment.