mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat(tools): 2.0 phase 5 wave 4 - office, ebooks, data, archives (14 tools) (#224)
This commit is contained in:
@@ -24,7 +24,11 @@ describe("modality metadata", () => {
|
||||
for (const tool of TOOLS) {
|
||||
expect(validModalities).toContain(tool.modality);
|
||||
expect(Array.isArray(tool.acceptedInputs)).toBe(true);
|
||||
expect(tool.acceptedInputs.length).toBeGreaterThan(0);
|
||||
// Empty acceptedInputs is valid for file-modality tools that accept any file
|
||||
// (e.g. create-zip); the factory 415 gate skips when the list is empty.
|
||||
if (tool.modality !== "file" || tool.acceptedInputs.length > 0) {
|
||||
expect(tool.acceptedInputs.length).toBeGreaterThan(0);
|
||||
}
|
||||
expect(["fast", "long"]).toContain(tool.executionHint);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user