Add tests for image effects, PDF operations, rotation state, and XML to PDF utilities

This commit is contained in:
alam00000 committed 2026-03-04 13:33:00 +05:30
1 parent 84848ab902
commit 90998edb25
9 files changed
+1396 -4

No files matched your search

+13
View File
@@ -1,5 +1,18 @@
import { afterEach, vi } from 'vitest';
class TestDOMMatrix {
a = 1;
b = 0;
c = 0;
d = 1;
e = 0;
f = 0;
}
if (typeof globalThis.DOMMatrix === 'undefined') {
globalThis.DOMMatrix = TestDOMMatrix as unknown as typeof DOMMatrix;
}
afterEach(() => {
document.body.innerHTML = '';
document.head.innerHTML = '';