File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/core/src/test/codewhispererChat/tools Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ describe('ListDirectory Tool', () => {
29
29
const result = await listDirectory . invoke ( process . stdout )
30
30
31
31
const lines = result . output . content . split ( '\n' )
32
- const hasFileA = lines . some ( ( line : string | string [ ] ) => line . includes ( '- ' ) && line . includes ( 'fileA.txt' ) )
33
- const hasSubfolder = lines . some ( ( line : string | string [ ] ) => line . includes ( 'd ' ) && line . includes ( 'subfolder' ) )
32
+ const hasFileA = lines . some ( ( line : string | string [ ] ) => line . includes ( '[FILE] ' ) && line . includes ( 'fileA.txt' ) )
33
+ const hasSubfolder = lines . some (
34
+ ( line : string | string [ ] ) => line . includes ( '[DIR] ' ) && line . includes ( 'subfolder' )
35
+ )
34
36
35
37
assert . ok ( hasFileA , 'Should list fileA.txt in the directory output' )
36
38
assert . ok ( hasSubfolder , 'Should list the subfolder in the directory output' )
You can’t perform that action at this time.
0 commit comments