refactor: ponytail audit

This commit is contained in:
Amruth Pillai
2026-07-27 20:26:16 +02:00
parent bb1fb3a7d6
commit 9110e86997
157 changed files with 1082 additions and 2177 deletions
+7
View File
@@ -20,4 +20,11 @@ describe("buildDocx", () => {
const blob = await buildDocx(data);
expect(blob.size).toBeGreaterThan(0);
});
it("returns a rejected Promise when document building fails synchronously", async () => {
const promise = buildDocx(undefined as never);
expect(promise).toBeInstanceOf(Promise);
await expect(promise).rejects.toThrow();
});
});