mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-09-15 05:56:36 +00:00
feat: add text and generation tools
This commit is contained in:
@@ -26,7 +26,9 @@ describe('реестр инструментов', () => {
|
||||
|
||||
it.each(TOOLS.map((t) => [t.id, t] as const))('%s: исполнители определены', (_, tool) => {
|
||||
if (tool.resultType === 'text') {
|
||||
expect(typeof tool.toText).toBe('function');
|
||||
expect(
|
||||
typeof tool.toText === 'function' || typeof tool.textToText === 'function'
|
||||
).toBe(true);
|
||||
} else if (tool.sourceMode === 'none') {
|
||||
expect(typeof tool.generate).toBe('function');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user