From 80555f13e052443dc9dc67811bf782a3146de512 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Mon, 26 May 2025 14:09:17 -0400 Subject: more tools --- js/test/tool/tool.test.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'js/test/tool/tool.test.ts') diff --git a/js/test/tool/tool.test.ts b/js/test/tool/tool.test.ts index 4e9daf152..8f69f7b59 100644 --- a/js/test/tool/tool.test.ts +++ b/js/test/tool/tool.test.ts @@ -1,6 +1,7 @@ import { describe, expect, test } from "bun:test"; import { App } from "../../src/app"; import { glob } from "../../src/tool/glob"; +import { ls } from "../../src/tool/ls"; describe("tool.glob", () => { test("truncate", async () => { @@ -35,3 +36,20 @@ describe("tool.glob", () => { }); }); }); + +describe("tool.ls", () => { + test("basic", async () => { + const result = await App.provide({ directory: process.cwd() }, async () => { + return await ls.execute( + { + path: ".", + }, + { + toolCallId: "test", + messages: [], + }, + ); + }); + expect(result.output).toMatchSnapshot(); + }); +}); -- cgit v1.2.3