Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
au-re committed Oct 30, 2023
1 parent e87e2fb commit cc0aa62
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions packages/@pufflig/ps-nodes/src/data/prompt/prompt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ test("getInputDefinition - no variables", () => {
template: `summarize {{longText}}`,
});
expect(variables).toMatchInlineSnapshot(`
[
{
"defaultValue": "summarize {{longText}}",
"description": "Template to fill in",
"id": "template",
"name": "Template",
"type": "text",
},
{
"defaultValue": "",
"description": "",
"id": "longText",
"name": "longText",
"type": "text",
},
]
`);
[
{
"defaultValue": "summarize {{longText}}",
"description": "Prompt Template to fill in",
"id": "template",
"name": "Template",
"type": "text",
},
{
"defaultValue": "",
"description": "",
"id": "longText",
"name": "longText",
"type": "text",
},
]
`);
});

test("getInputDefinition - if you pass a template and a variable, take value of the variable", () => {
Expand All @@ -54,23 +54,23 @@ test("getInputDefinition - if you pass a template and a variable, take value of
longText: "some long text",
});
expect(variables).toMatchInlineSnapshot(`
[
{
"defaultValue": "summarize {{longText}}",
"description": "Template to fill in",
"id": "template",
"name": "Template",
"type": "text",
},
{
"defaultValue": "some long text",
"description": "",
"id": "longText",
"name": "longText",
"type": "text",
},
]
`);
[
{
"defaultValue": "summarize {{longText}}",
"description": "Prompt Template to fill in",
"id": "template",
"name": "Template",
"type": "text",
},
{
"defaultValue": "some long text",
"description": "",
"id": "longText",
"name": "longText",
"type": "text",
},
]
`);
});

test("getInputDefinition - ignores non existing variables", () => {
Expand All @@ -79,21 +79,21 @@ test("getInputDefinition - ignores non existing variables", () => {
otherVariable: "",
});
expect(variables).toMatchInlineSnapshot(`
[
{
"defaultValue": "summarize {{longText}}",
"description": "Template to fill in",
"id": "template",
"name": "Template",
"type": "text",
},
{
"defaultValue": "",
"description": "",
"id": "longText",
"name": "longText",
"type": "text",
},
]
`);
[
{
"defaultValue": "summarize {{longText}}",
"description": "Prompt Template to fill in",
"id": "template",
"name": "Template",
"type": "text",
},
{
"defaultValue": "",
"description": "",
"id": "longText",
"name": "longText",
"type": "text",
},
]
`);
});

0 comments on commit cc0aa62

Please sign in to comment.