Skip to content

Commit

Permalink
feat: implement dir walkjs
Browse files Browse the repository at this point in the history
  • Loading branch information
HaidarJbeily7 committed Nov 23, 2024
1 parent 7dcdbcb commit fe442b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eo2js-runtime/test/objects/org/eolang/fs/dir$walk.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ describe('dir$walk', function() {

it('should find files matching glob pattern', function() {
const walk = dir$walk();
walk.attrs['glob'] = data.toObject(path.join(directory, '**/*.txt'));
walk.attrs['glob'] = data.toObject('**/*.txt');
const result = dataized(walk, STRING).split('\n').sort();
assert.deepEqual(
result,
[
path.join(directory, 'file1.txt'),
path.join(directory, 'subdir/file3.txt')
'file1.txt',
'subdir/file3.txt'
].sort()
);
});
Expand Down

0 comments on commit fe442b3

Please sign in to comment.