mirror of
https://github.com/prymitive/karma
synced 2026-05-21 04:33:07 +00:00
fix(tests): correctly fail mock requests
This commit is contained in:
@@ -146,7 +146,7 @@ describe("<AlertGroupSortConfiguration />", () => {
|
||||
});
|
||||
|
||||
it("label select handles fetch errors", async () => {
|
||||
fetch.mockReject("error");
|
||||
fetch.mockReject(new Error("Fetch error"));
|
||||
const tree = await ExpandSortLabelSuggestions();
|
||||
const options = tree.find("div.react-select__option");
|
||||
expect(options).toHaveLength(0);
|
||||
|
||||
Reference in New Issue
Block a user