Skip to content

Commit 3e9b32e

Browse files
committed
update tests
1 parent 062d6bb commit 3e9b32e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/gradio_convert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function convertParameter(param: ApiParameter): ParameterSchema {
4848
if (isFileParameter(param)) {
4949
baseType = "string"; // Always string for file inputs
5050
if (param.component === "Audio") {
51-
baseDescription = "Accepts: Audio file URL, file path,file name, or resource identifier";
51+
baseDescription = "Accepts: Audio file URL, file path, file name, or resource identifier";
5252
} else if (param.component === "Image") {
5353
baseDescription = "Accepts: Image file URL, file path, file name, or resource identifier";
5454
} else {

test/utils.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ describe("file and blob type conversions", () => {
408408

409409
expect(result).toMatchObject({
410410
type: "string",
411-
description: "Accepts: URL, file path, or resource identifier",
411+
description: "Accepts: URL, file path, file name, or resource identifier",
412412
});
413413
});
414414

@@ -431,7 +431,7 @@ describe("file and blob type conversions", () => {
431431

432432
expect(result).toMatchObject({
433433
type: "string",
434-
description: "Accepts: URL, file path, or resource identifier",
434+
description: "Accepts: URL, file path, file name, or resource identifier",
435435
});
436436
});
437437

@@ -455,7 +455,7 @@ describe("file and blob type conversions", () => {
455455

456456
expect(result).toMatchObject({
457457
type: "string",
458-
description: "Accepts: Audio file URL, file path, or resource identifier",
458+
description: "Accepts: Audio file URL, file path, file name, or resource identifier",
459459
});
460460
});
461461

@@ -481,7 +481,7 @@ describe("file and blob type conversions", () => {
481481

482482
expect(result).toMatchObject({
483483
type: "string", // Should always be "string" for file inputs
484-
description: "Accepts: Audio file URL, file path, or resource identifier",
484+
description: "Accepts: Audio file URL, file path, file name, or resource identifier",
485485
});
486486
});
487487

@@ -504,7 +504,7 @@ describe("file and blob type conversions", () => {
504504

505505
expect(result).toMatchObject({
506506
type: "string",
507-
description: "Accepts: Image file URL, file path, or resource identifier",
507+
description: "Accepts: Image file URL, file path, file name, or resource identifier",
508508
});
509509
});
510510
});

0 commit comments

Comments
 (0)