Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
  • Loading branch information
Tyler Smalley committed Feb 17, 2021
1 parent b2253ec commit 45a0dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/observability/public/utils/test_helper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const plugins = ({
data: { query: { timefilter: { timefilter: { setTime: jest.fn() } } } },
} as unknown) as ObservabilityPluginSetupDeps;

export const render = (((component: React.ReactNode) => {
export const render = (component: React.ReactNode): RenderResult => {
return testLibRender(
<IntlProvider locale="en-US" messages={translations.messages}>
<KibanaContextProvider services={{ ...core }}>
Expand All @@ -60,4 +60,4 @@ export const render = (((component: React.ReactNode) => {
</KibanaContextProvider>
</IntlProvider>
);
}) as unknown) as RenderResult;
};

0 comments on commit 45a0dbe

Please sign in to comment.