diff options
| author | matt korwel <[email protected]> | 2025-07-05 13:58:59 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-05 20:58:59 +0000 |
| commit | a7256f630c7c9335ccd7a41e97c9322c0a33ea67 (patch) | |
| tree | f1bdac3ec3d67171717de60032cf3dbbf24f437b /integration-tests | |
| parent | 4be32d1f73bc2d9e4d22a71eee7b142e9b0aa577 (diff) | |
Relase: Clean up and condensing (#3321)
Diffstat (limited to 'integration-tests')
| -rw-r--r-- | integration-tests/list_directory.test.js | 6 |
1 files changed, 4 insertions, 2 deletions
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')); }); |
