Release Mail Tools 0.2.0
Verify / verify (push) Canceled after 0s

This commit is contained in:
2026-09-02 10:47:30 +02:00
parent 9bc0870404
commit 2ab972a9f3
35 changed files with 2061 additions and 150 deletions
+16
View File
@@ -17,6 +17,22 @@ describe("inert rendering and output", () => {
);
});
it("embeds only explicitly supplied safe CID image bytes", () => {
const output = sanitizeMailHtml(
'<img src="cid:logo@example.test"><img src="https://bad.test/pixel">',
[
{
contentId: "logo@example.test",
mediaType: "image/png",
bytes: new Uint8Array([1, 2, 3]),
},
],
);
expect(output).toContain("data:image/png;base64,AQID");
expect(output).not.toContain("bad.test");
expect(output).not.toContain("cid:");
});
it("produces a bounded line comparison", () => {
expect(compareBodies("a\nb", "a\nc")).toMatchObject({
added: 1,