Skip to content

Commit

Permalink
fix type error in enterprise search plugin mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Aug 4, 2020
1 parent 3cd56cd commit 7557a82
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type TMockRouterRequest = KibanaRequest | IMockRouterRequest;

export class MockRouter {
public router!: jest.Mocked<IRouter>;
public method: methodType;
public payload?: payloadType;
public method: MethodType;
public payload?: PayloadType;
public response = httpServerMock.createResponseFactory();

constructor({ method, payload }: IMockRouterProps) {
Expand Down

0 comments on commit 7557a82

Please sign in to comment.