Skip to content

Commit

Permalink
[fix] export correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
toddself committed May 22, 2019
1 parent 137157a commit 60e072a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/server/http/http_service.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import { Server, ServerOptions } from 'hapi';
import { HttpService } from './http_service';
import { HttpConfig } from './http_config';
import { HttpServerSetup } from './http_server';

const createSetupContractMock = () => {
const setupContract = {
Expand All @@ -30,6 +32,7 @@ const createSetupContractMock = () => {
setBasePathFor: jest.fn(),
// we can mock some hapi server method when we need it
server: {} as Server,
createNewServer: async (cfg: HttpConfig): Promise<HttpServerSetup> => ({} as HttpServerSetup),
};
return setupContract;
};
Expand Down

0 comments on commit 60e072a

Please sign in to comment.