mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-13 09:54:19 +01:00
Add tests for image effects, PDF operations, rotation state, and XML to PDF utilities
This commit is contained in:
1 parent
84848ab902
commit
90998edb25
9 files changed
+1396
-4
No files matched your search
@@ -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 = '';
|
||||
|
||||
Reference in new issue
Block a user