From 0c2bfa5e7406e6285a52a6f7e706c22dcce6f0e7 Mon Sep 17 00:00:00 2001 From: Marcel Seidel Date: Thu, 13 Jun 2024 09:16:02 +0200 Subject: [PATCH] chore: Updating Typescript error message --- samples/weather-forecast/src/api/useWeather.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/weather-forecast/src/api/useWeather.test.tsx b/samples/weather-forecast/src/api/useWeather.test.tsx index 27fea1c..553d00f 100644 --- a/samples/weather-forecast/src/api/useWeather.test.tsx +++ b/samples/weather-forecast/src/api/useWeather.test.tsx @@ -104,7 +104,7 @@ describe("useWeather", () => { }); expect(result.current.error).toEqual( - new TypeError("Cannot read property 'map' of undefined") + new TypeError("Cannot read properties of undefined (reading 'map')") ); expect(log).toHaveBeenCalledTimes(1); });