From 06a5de1b6cdb6dc056fab7dab9835faa1d0836d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 19 Oct 2022 09:37:21 +0100 Subject: [PATCH] fix(tests): update tests --- ui/src/Hooks/useFetchGet.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/Hooks/useFetchGet.test.tsx b/ui/src/Hooks/useFetchGet.test.tsx index c4394c5ca..8102445bb 100644 --- a/ui/src/Hooks/useFetchGet.test.tsx +++ b/ui/src/Hooks/useFetchGet.test.tsx @@ -271,7 +271,7 @@ describe("useFetchGet", () => { expect(result.current.response).toBe(null); expect(result.current.error).toBe( - "invalid json response body at http://localhost/json/invalid reason: Unexpected token h in JSON at position 1" + "invalid json response body at http://localhost/json/invalid reason: Unexpected token 'h', \"this is not\"... is not valid JSON" ); expect(result.current.isLoading).toBe(false); expect(result.current.isRetrying).toBe(false);