@@ -29,23 +29,23 @@ test("getInputDefinition - no variables", () => {
29
29
template : `summarize {{longText}}` ,
30
30
} ) ;
31
31
expect ( variables ) . toMatchInlineSnapshot ( `
32
- [
33
- {
34
- "defaultValue": "summarize {{longText}}",
35
- "description": "Template to fill in",
36
- "id": "template",
37
- "name": "Template",
38
- "type": "text",
39
- },
40
- {
41
- "defaultValue": "",
42
- "description": "",
43
- "id": "longText",
44
- "name": "longText",
45
- "type": "text",
46
- },
47
- ]
48
- `) ;
32
+ [
33
+ {
34
+ "defaultValue": "summarize {{longText}}",
35
+ "description": "Prompt Template to fill in",
36
+ "id": "template",
37
+ "name": "Template",
38
+ "type": "text",
39
+ },
40
+ {
41
+ "defaultValue": "",
42
+ "description": "",
43
+ "id": "longText",
44
+ "name": "longText",
45
+ "type": "text",
46
+ },
47
+ ]
48
+ ` ) ;
49
49
} ) ;
50
50
51
51
test ( "getInputDefinition - if you pass a template and a variable, take value of the variable" , ( ) => {
@@ -54,23 +54,23 @@ test("getInputDefinition - if you pass a template and a variable, take value of
54
54
longText : "some long text" ,
55
55
} ) ;
56
56
expect ( variables ) . toMatchInlineSnapshot ( `
57
- [
58
- {
59
- "defaultValue": "summarize {{longText}}",
60
- "description": "Template to fill in",
61
- "id": "template",
62
- "name": "Template",
63
- "type": "text",
64
- },
65
- {
66
- "defaultValue": "some long text",
67
- "description": "",
68
- "id": "longText",
69
- "name": "longText",
70
- "type": "text",
71
- },
72
- ]
73
- `) ;
57
+ [
58
+ {
59
+ "defaultValue": "summarize {{longText}}",
60
+ "description": "Prompt Template to fill in",
61
+ "id": "template",
62
+ "name": "Template",
63
+ "type": "text",
64
+ },
65
+ {
66
+ "defaultValue": "some long text",
67
+ "description": "",
68
+ "id": "longText",
69
+ "name": "longText",
70
+ "type": "text",
71
+ },
72
+ ]
73
+ ` ) ;
74
74
} ) ;
75
75
76
76
test ( "getInputDefinition - ignores non existing variables" , ( ) => {
@@ -79,21 +79,21 @@ test("getInputDefinition - ignores non existing variables", () => {
79
79
otherVariable : "" ,
80
80
} ) ;
81
81
expect ( variables ) . toMatchInlineSnapshot ( `
82
- [
83
- {
84
- "defaultValue": "summarize {{longText}}",
85
- "description": "Template to fill in",
86
- "id": "template",
87
- "name": "Template",
88
- "type": "text",
89
- },
90
- {
91
- "defaultValue": "",
92
- "description": "",
93
- "id": "longText",
94
- "name": "longText",
95
- "type": "text",
96
- },
97
- ]
98
- `) ;
82
+ [
83
+ {
84
+ "defaultValue": "summarize {{longText}}",
85
+ "description": "Prompt Template to fill in",
86
+ "id": "template",
87
+ "name": "Template",
88
+ "type": "text",
89
+ },
90
+ {
91
+ "defaultValue": "",
92
+ "description": "",
93
+ "id": "longText",
94
+ "name": "longText",
95
+ "type": "text",
96
+ },
97
+ ]
98
+ ` ) ;
99
99
} ) ;
0 commit comments