summaryrefslogtreecommitdiff
path: root/integration-tests/list_directory.test.js
diff options
context:
space:
mode:
authormatt korwel <[email protected]>2025-07-06 20:16:42 -0700
committerGitHub <[email protected]>2025-07-07 03:16:42 +0000
commit20825e41148a58998a6b1e5869149eac8d09cfbd (patch)
treea228489987cd2e50925e5c9e97f5b9d0aa9c5e73 /integration-tests/list_directory.test.js
parent39d4095a4c0f3478235aa0c80c94586b9e2662c2 (diff)
Release misc (#3418)
Diffstat (limited to 'integration-tests/list_directory.test.js')
-rw-r--r--integration-tests/list_directory.test.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/integration-tests/list_directory.test.js b/integration-tests/list_directory.test.js
index 3190e482..af7aae78 100644
--- a/integration-tests/list_directory.test.js
+++ b/integration-tests/list_directory.test.js
@@ -15,11 +15,10 @@ test('should be able to list a directory', async (t) => {
rig.mkdir('subdir');
rig.sync();
- const prompt = `Can you list the files in the current directory`;
- const result = await rig.run(prompt);
+ const prompt = `Can you list the files in the current directory. Display them in the style of 'ls'`;
+ const result = rig.run(prompt);
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'));
+ assert.ok(lines.some((line) => line.includes('file1.txt')));
+ assert.ok(lines.some((line) => line.includes('subdir')));
});