From 9d68f2c4cc162666de5d88dafdfd7789e609a7db Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 16 Oct 2024 17:14:48 +0100 Subject: [PATCH] Update tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- test/unit-tests/components/views/location/Map-test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit-tests/components/views/location/Map-test.tsx b/test/unit-tests/components/views/location/Map-test.tsx index 28c0f25811..7771c6190a 100644 --- a/test/unit-tests/components/views/location/Map-test.tsx +++ b/test/unit-tests/components/views/location/Map-test.tsx @@ -102,7 +102,7 @@ describe("", () => { const logSpy = jest.spyOn(logger, "error").mockImplementation(); getComponent({ centerGeoUri: "123 Sesame Street" }); expect(mockMap.setCenter).not.toHaveBeenCalled(); - expect(logSpy).toHaveBeenCalledWith("Could not set map center"); + expect(logSpy).toHaveBeenCalledWith("Could not set map center", expect.any(Error)); }); it("updates map center when centerGeoUri prop changes", () => { @@ -136,7 +136,7 @@ describe("", () => { const bounds = { north: "a", south: "b", east: 42, west: 41 }; getComponent({ bounds }); expect(mockMap.fitBounds).not.toHaveBeenCalled(); - expect(logSpy).toHaveBeenCalledWith("Invalid map bounds"); + expect(logSpy).toHaveBeenCalledWith("Invalid map bounds", expect.any(Error)); }); it("updates map bounds when bounds prop changes", () => {