File: 0002-Fix-filesystem-order-problem.patch

package info (click to toggle)
node-shelljs 0.8.5%2B~cs0.8.10-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,668 kB
  • sloc: javascript: 6,945; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (2)
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
27
28
29
30
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Sat, 1 Nov 2025 20:57:16 +0100
Subject: Fix filesystem order problem

fowarded: not-needed
---
 test/tail.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/tail.js b/test/tail.js
index 06bcd05..1f69101 100644
--- a/test/tail.js
+++ b/test/tail.js
@@ -102,12 +102,13 @@ test('Globbed file', t => {
   const result = shell.tail('test/resources/head/file?.txt');
   t.false(shell.error());
   t.is(result.code, 0);
-  t.is(result.toString(),
-    bottomOfFile1
+  t.is(result.toString().split('\n').sort().join('\n'),
+    '\n'+bottomOfFile1
       .slice(0, 10)
       .reverse()
       .concat(bottomOfFile2.slice(0, 10).reverse())
-      .join('\n') + '\n');
+      .sort()
+      .join('\n'));
   t.end();
 });