Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

chore(prompts): add test#46

Open
BLamy wants to merge 1 commit intocfortuner:mainfrom
BLamy:fix-prompt-tests
Open

chore(prompts): add test#46
BLamy wants to merge 1 commit intocfortuner:mainfrom
BLamy:fix-prompt-tests

Conversation

@BLamy
Copy link
Copy Markdown

@BLamy BLamy commented Mar 2, 2023

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 2, 2023

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated
docs-promptable ❌ Failed (Inspect) Mar 2, 2023 at 7:19AM (UTC)

test("Can clone prompt", () => {
const variables = { test: "test" };
const p = prompt(PROMPT_TEXT, variables);
const pClone = p.clone({ variables: { test: "test2" } })
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cfortuner was this how you intended the p.clone api to be or did you mean for it to be p.clone({ test: "test2" })

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant