diff --git a/x-pack/plugins/enterprise_search/server/__mocks__/router.mock.ts b/x-pack/plugins/enterprise_search/server/__mocks__/router.mock.ts index 98a6c5b98e16e..819cabec44f07 100644 --- a/x-pack/plugins/enterprise_search/server/__mocks__/router.mock.ts +++ b/x-pack/plugins/enterprise_search/server/__mocks__/router.mock.ts @@ -81,7 +81,7 @@ export class MockRouter { expect(() => this.validateRoute(request)).toThrow(); }; - findRouteRegistration = () => { + private findRouteRegistration = () => { const routerCalls = this.router[this.method].mock.calls as any[]; if (!routerCalls.length) throw new Error('No routes registered.');