Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -142,12 +142,8 @@ describe("MailjetProvider attachment mapping", () => {
});
const message = sentPayload(fetchMock).Messages[0]!;
expect(message.Attachments).toEqual([
{ ContentType: "application/pdf", Filename: "report.pdf", Base64Content: "YWJj" },
]);
expect(message.InlinedAttachments).toEqual([
{ ContentType: "image/png", Filename: "logo.png", Base64Content: "ZGVm", ContentID: "logo" },
]);
expect(message.Attachments).toEqual([{ ContentType: "application/pdf", Filename: "report.pdf", Base64Content: "YWJj" }]);
expect(message.InlinedAttachments).toEqual([{ ContentType: "image/png", Filename: "logo.png", Base64Content: "ZGVm", ContentID: "logo" }]);
});
test("falls back to application/octet-stream for missing and unknown extensions", async () => {
@@ -162,9 +158,7 @@ describe("MailjetProvider attachment mapping", () => {
],
});
const types = (sentPayload(fetchMock).Messages[0]!.Attachments as Array<{ ContentType: string }>).map(
(a) => a.ContentType
);
const types = (sentPayload(fetchMock).Messages[0]!.Attachments as Array<{ ContentType: string }>).map((a) => a.ContentType);
expect(types).toEqual(["application/octet-stream", "application/octet-stream"]);
});
});
@@ -187,9 +181,7 @@ describe("MailjetProvider response parsing edge cases", () => {
});
test("returns an undefined messageId when the recipient carries neither UUID nor MessageID", async () => {
const fetchMock = vi.fn(async () =>
jsonResponse({ Messages: [{ Status: "success", To: [{ Email: "to@example.com" }] }] }, { status: 200 })
);
const fetchMock = vi.fn(async () => jsonResponse({ Messages: [{ Status: "success", To: [{ Email: "to@example.com" }] }] }, { status: 200 }));
const result = await provider(fetchMock).send({ to: ["to@example.com"], subject: "x", text: "y" });
expect(result.messageId).toBeUndefined();
expect(result.status).toBe("queued");