From e498c5b6e2ce956db9484c90359d17b6b08878d4 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 29 Sep 2023 15:24:08 -0300 Subject: [PATCH] Add `App.test.tsx` --- src/js/components/ErrorRenderer.tsx | 2 +- src/js/components/ResponseRenderer.tsx | 2 +- test/App.test.tsx | 47 ++++++++++++++++++++++++++ test/mocks/fetch.ts | 29 ++++++++++++++++ 4 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 test/App.test.tsx create mode 100644 test/mocks/fetch.ts diff --git a/src/js/components/ErrorRenderer.tsx b/src/js/components/ErrorRenderer.tsx index 7d974e3..001061d 100644 --- a/src/js/components/ErrorRenderer.tsx +++ b/src/js/components/ErrorRenderer.tsx @@ -3,7 +3,7 @@ import React from "react"; export function ErrorRenderer({ error }: {error: Error}) { const t = chrome.i18n.getMessage; return ( -