1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Wed, 29 Oct 2025 09:33:31 +0100
Subject: Sort test case
order of files depend of filesystem
forwarded: not-needed
---
test/follow.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/follow.ts b/test/follow.ts
index 101b366..367c60e 100644
--- a/test/follow.ts
+++ b/test/follow.ts
@@ -16,8 +16,8 @@ t.test('follow symlinks', async t => {
glob(pattern),
glob(pattern, { follow: true }),
])
- t.same(follow, syncFollow, 'sync and async follow should match')
- t.same(noFollow, syncNoFollow, 'sync and async noFollow should match')
+ t.same(follow.sort(), syncFollow.sort(), 'sync and async follow should match')
+ t.same(noFollow.sort(), syncNoFollow.sort(), 'sync and async noFollow should match')
var long = 'a/symlink/a/b/c/a/b/c/a/b/c/a/b/c/a/b/c/a/b/c/a/b/c'
t.ok(follow.includes(long), 'follow should have long entry')
t.ok(syncFollow.includes(long), 'syncFollow should have long entry')
|