Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Mar 30, 2024
1 parent 1a84b7c commit 7d13ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions langchain-core/src/prompts/tests/chat.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,13 @@ test("Test MessagesPlaceholder not optional", async () => {
);
});

test.only("Test MessagesPlaceholder shorthand in a chat prompt template should throw for invalid syntax", async () => {
test("Test MessagesPlaceholder shorthand in a chat prompt template should throw for invalid syntax", async () => {
expect(() =>
ChatPromptTemplate.fromMessages([["placeholder", "foo"]])
).toThrow();
});

test.only("Test MessagesPlaceholder shorthand in a chat prompt template", async () => {
test("Test MessagesPlaceholder shorthand in a chat prompt template", async () => {
const prompt = ChatPromptTemplate.fromMessages([["placeholder", "{foo}"]]);
const messages = await prompt.formatMessages({
foo: [new HumanMessage("Hi there!"), new AIMessage("how r u")],
Expand Down

0 comments on commit 7d13ad3

Please sign in to comment.