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

chore(prompts): add test #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

BLamy
Copy link

@BLamy BLamy commented Mar 2, 2023

No description provided.

@vercel
Copy link

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
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