fix(tests): update tests

This commit is contained in:
Łukasz Mierzwa
2022-10-19 09:37:21 +01:00
committed by Łukasz Mierzwa
parent 26093ac4af
commit 06a5de1b6c

View File

@@ -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);