From ab4accbdf8895a0378892d4ccf203f1f86bf5741 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Tue, 24 Sep 2024 13:52:25 -0700 Subject: [PATCH] Use assertions in tests --- js/src/utils/prompts/tests/anthropic.int.test.ts | 2 +- js/src/utils/prompts/tests/openai.int.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/utils/prompts/tests/anthropic.int.test.ts b/js/src/utils/prompts/tests/anthropic.int.test.ts index a5524677b..d057a561c 100644 --- a/js/src/utils/prompts/tests/anthropic.int.test.ts +++ b/js/src/utils/prompts/tests/anthropic.int.test.ts @@ -21,5 +21,5 @@ test("basic traceable implementation", async () => { stream: false, }); - console.log(anthropicResponse); + expect(anthropicResponse.content).toBeDefined(); }); diff --git a/js/src/utils/prompts/tests/openai.int.test.ts b/js/src/utils/prompts/tests/openai.int.test.ts index 890e2b33b..48b12f715 100644 --- a/js/src/utils/prompts/tests/openai.int.test.ts +++ b/js/src/utils/prompts/tests/openai.int.test.ts @@ -18,5 +18,5 @@ test("basic traceable implementation", async () => { messages, }); - console.log(openAIResponse); + expect(openAIResponse.choices.length).toBeGreaterThan(0); });