From 2ca8248315d82133cad60a91bfc8701b698c934c Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Tue, 27 Feb 2024 09:24:07 -0300 Subject: [PATCH] chore(site): apply code conventions (#12316) --- site/jest.setup.ts | 2 +- site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/site/jest.setup.ts b/site/jest.setup.ts index c7c0e4f814..6e1da6fb24 100644 --- a/site/jest.setup.ts +++ b/site/jest.setup.ts @@ -49,7 +49,7 @@ global.TextDecoder = TextDecoder as any; global.Blob = Blob as any; global.scrollTo = jest.fn(); -window.HTMLElement.prototype.scrollIntoView = function () {}; +window.HTMLElement.prototype.scrollIntoView = jest.fn(); // Polyfill the getRandomValues that is used on utils/random.ts Object.defineProperty(global.self, "crypto", { diff --git a/site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx b/site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx index 65283b640b..19a5fe572f 100644 --- a/site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx +++ b/site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx @@ -87,7 +87,9 @@ export const BuildLogsDrawer: FC = ({ ); }; -const MissingVariablesBanner: FC<{ onFillVariables: () => void }> = ({ +type MissingVariablesBannerProps = { onFillVariables: () => void }; + +const MissingVariablesBanner: FC = ({ onFillVariables, }) => { return (