Skip to content

Commit cc0aa62

Browse files
committed
update snapshot
1 parent e87e2fb commit cc0aa62

File tree

1 file changed

+51
-51
lines changed

1 file changed

+51
-51
lines changed

packages/@pufflig/ps-nodes/src/data/prompt/prompt.test.ts

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ test("getInputDefinition - no variables", () => {
2929
template: `summarize {{longText}}`,
3030
});
3131
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+
`);
4949
});
5050

5151
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
5454
longText: "some long text",
5555
});
5656
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+
`);
7474
});
7575

7676
test("getInputDefinition - ignores non existing variables", () => {
@@ -79,21 +79,21 @@ test("getInputDefinition - ignores non existing variables", () => {
7979
otherVariable: "",
8080
});
8181
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+
`);
9999
});

0 commit comments

Comments
 (0)