From fe442b397f6c6ce96606b88b767d6ef2991624f6 Mon Sep 17 00:00:00 2001 From: HaidarJbeily7 Date: Sun, 24 Nov 2024 00:48:31 +0300 Subject: [PATCH] feat: implement dir walkjs --- eo2js-runtime/test/objects/org/eolang/fs/dir$walk.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eo2js-runtime/test/objects/org/eolang/fs/dir$walk.test.js b/eo2js-runtime/test/objects/org/eolang/fs/dir$walk.test.js index bc75d0b..7caa75c 100644 --- a/eo2js-runtime/test/objects/org/eolang/fs/dir$walk.test.js +++ b/eo2js-runtime/test/objects/org/eolang/fs/dir$walk.test.js @@ -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() ); });