Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Oct 16, 2024
1 parent 31ee3ea commit b048090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit-tests/components/views/location/Map-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe("<Map />", () => {
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", () => {
Expand Down Expand Up @@ -136,7 +136,7 @@ describe("<Map />", () => {
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", () => {
Expand Down

0 comments on commit b048090

Please sign in to comment.