fix(api): harden broadcast and assistant fallback errors
This commit is contained in:
@@ -306,13 +306,7 @@ describe("notification.createBroadcast", () => {
|
||||
message: "No recipients matched the broadcast target.",
|
||||
});
|
||||
|
||||
expect(create).toHaveBeenCalledWith(expect.objectContaining({
|
||||
data: expect.objectContaining({
|
||||
senderId: "user_mgr",
|
||||
title: "Ops update",
|
||||
targetType: "all",
|
||||
}),
|
||||
}));
|
||||
expect(create).not.toHaveBeenCalled();
|
||||
expect(update).not.toHaveBeenCalled();
|
||||
expect(resolveRecipientsMock).toHaveBeenCalledWith(
|
||||
"all",
|
||||
|
||||
Reference in New Issue
Block a user