Skip to content

Commit

Permalink
update existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angusfretwell committed Sep 21, 2024
1 parent 82796eb commit 54a7f73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion test/api3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,12 @@ describe("debug", () => {
} catch {}

expect(consoleSpy.group).toHaveBeenCalled();
expect(consoleSpy.error).toHaveBeenCalledWith("Internal Server Error");
expect(consoleSpy.error).toHaveBeenCalledWith(
expect.objectContaining({
name: "CiviCRMRequestError",
message: "Internal Server Error",
}),
);
expect(consoleSpy.groupEnd).toHaveBeenCalled();
});
});
7 changes: 6 additions & 1 deletion test/api4.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ describe("debug", () => {
} catch {}

expect(consoleSpy.group).toHaveBeenCalled();
expect(consoleSpy.error).toHaveBeenCalledWith("Internal Server Error");
expect(consoleSpy.error).toHaveBeenCalledWith(
expect.objectContaining({
name: "CiviCRMRequestError",
message: "Internal Server Error",
}),
);
expect(consoleSpy.groupEnd).toHaveBeenCalled();
});
});

0 comments on commit 54a7f73

Please sign in to comment.