Skip to content

Commit

Permalink
Fix fake requests in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Jul 30, 2020
1 parent 891f3a7 commit 7ee769f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/alerts/server/alerts_client_factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const alertsClientFactoryParams: jest.Mocked<AlertsClientFactoryOpts> = {
features,
};
const fakeRequest = ({
app: {},
headers: {},
getBasePath: () => '',
path: '/',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const getRequest = async (headers: string | undefined, crypto: Crypto, logger: L
path: '/',
route: { settings: {} },
url: { href: '/' },
app: {},
raw: { req: { url: '/' } },
} as Hapi.Request);
};
Expand Down

0 comments on commit 7ee769f

Please sign in to comment.