Skip to content

Commit

Permalink
Added null check to fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
cgalvan committed May 1, 2024
1 parent c83715b commit fee398b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/maps.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ test("should log error with invalid map option center", () => {
center: "THIS_IS_NOT_A_VALID_CENTER",
});

expect(testMap).not.toBeNull();
expect(console.error).toHaveBeenCalledTimes(1);
expect(console.error).toHaveBeenCalledWith("Unrecognized center option", "THIS_IS_NOT_A_VALID_CENTER");
});
Expand Down

0 comments on commit fee398b

Please sign in to comment.