Skip to content

Commit

Permalink
update weather-tool.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
osdodo committed Jan 9, 2025
1 parent 02da21b commit b4bc632
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/weather-tool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ dotenv.config();
describe("weatherTool", () => {
it("should return weather forecast data for Beijing", async () => {
const weatherTool = new WeatherTool(process.env.OPENWEATHER_API_KEY!);
const result = await weatherTool.execute(
"What's the future weather in Beijing?"
);
const input = "What's the future weather in London?";
console.log(`🚀 ~ it ~ input:`, input);
const result = await weatherTool.execute(input);
console.log(`🚀 ~ it ~ result:`, result);
expect(result).toContain("Beijing");
expect(result).toContain("London");
});
}, 10000);

0 comments on commit b4bc632

Please sign in to comment.