mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
refactor: executor protocol, fallback, debounce
This commit is contained in:
@@ -65,6 +65,19 @@ describe("registry-new (переведённые инструменты)", () =>
|
||||
}
|
||||
});
|
||||
|
||||
it("DOM-dependent tools bypass the worker", () => {
|
||||
for (const id of [
|
||||
"png-to-base64",
|
||||
"png-to-data-uri",
|
||||
"base64-to-png",
|
||||
"data-uri-to-png",
|
||||
"jpeg-artifacts-png",
|
||||
"placeholder-png",
|
||||
]) {
|
||||
expect(TOOLS.find((tool) => tool.id === id)?.domOnly, id).toBe(true);
|
||||
}
|
||||
});
|
||||
|
||||
it("source-aware dimension defaults применяются только к image tools", () => {
|
||||
for (const tool of TOOLS) {
|
||||
for (const field of Object.values(tool.schema.fields)) {
|
||||
|
||||
Reference in New Issue
Block a user