feat : update i guess
CI / Verify (push) Failing after 1m4s
CI / Build immutable images and deploy (push) Skipped

This commit is contained in:
2026-10-03 15:47:47 +07:00 Unverified
parent f5cfe0a22e
commit 95c45841e7
15 changed files with 4297 additions and 174 deletions
@@ -40,7 +40,8 @@ describe("commission message deletion", () => {
vi.clearAllMocks();
authorizeTicket.mockResolvedValue({ ticket: { userId: ownerId, status: "open" }, user: { id: ownerId } });
deleteWhere.mockImplementation(() => ({ returning: deleteReturning }));
deleteReturning.mockResolvedValue([{ imageObjectKey: "commission/messages/image-1" }]);
deleteReturning.mockResolvedValue([{ imageObjectKey: "commission/messages/image-1",
imageObjectKeys: ["commission/messages/image-2", "commission/messages/image-3"] }]);
updateWhere.mockResolvedValue(undefined);
deleteObject.mockResolvedValue(undefined);
notifyCommission.mockResolvedValue(undefined);
@@ -63,6 +64,8 @@ describe("commission message deletion", () => {
expect(query.params).toContain(messageId);
expect(query.params).toContain(ownerId);
expect(deleteObject).toHaveBeenCalledWith("commission/messages/image-1");
expect(deleteObject).toHaveBeenCalledWith("commission/messages/image-2");
expect(deleteObject).toHaveBeenCalledWith("commission/messages/image-3");
expect(notifyCommission).toHaveBeenCalledWith(ticketId, ownerId);
});