From a7256f630c7c9335ccd7a41e97c9322c0a33ea67 Mon Sep 17 00:00:00 2001 From: matt korwel Date: Sat, 5 Jul 2025 13:58:59 -0700 Subject: Relase: Clean up and condensing (#3321) --- integration-tests/list_directory.test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'integration-tests') diff --git a/integration-tests/list_directory.test.js b/integration-tests/list_directory.test.js index 6bbcde63..3190e482 100644 --- a/integration-tests/list_directory.test.js +++ b/integration-tests/list_directory.test.js @@ -18,6 +18,8 @@ test('should be able to list a directory', async (t) => { const prompt = `Can you list the files in the current directory`; const result = await rig.run(prompt); - assert.ok(result.includes('file1.txt')); - assert.ok(result.includes('subdir')); + const lines = result.split('\n').filter((line) => line.trim() !== ''); + assert.equal(lines.length, 2); + assert.ok(lines.includes('file1.txt')); + assert.ok(lines.includes('subdir')); }); -- cgit v1.2.3