File: 0012-Sort-filelist-in-test.patch

package info (click to toggle)
node-tap 16.3.7%2Bds3%2B~cs49.5.20-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 99,068 kB
  • sloc: javascript: 14,032; sh: 102; makefile: 37
file content (28 lines) | stat: -rw-r--r-- 852 bytes parent folder | download
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
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Wed, 29 Oct 2025 23:39:25 +0100
Subject: Sort filelist in test

Get filesystem insentive

forwarded: not-needed
---
 test/coverage-map.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/coverage-map.js b/test/coverage-map.js
index 5b8eec6..7f6a283 100644
--- a/test/coverage-map.js
+++ b/test/coverage-map.js
@@ -1,10 +1,10 @@
 const t = require('../')
 const coverageMap = require('../coverage-map.js')
 t.strictSame(coverageMap('test/coverage-map.js'), ['coverage-map.js'])
-t.strictSame(coverageMap('test/run/xyz.js'), [
+t.strictSame(coverageMap('test/run/xyz.js').sort(), [
   'bin/jack.js',
   'bin/jsx.js',
   'bin/run.js'
-])
+].sort())
 t.strictSame(coverageMap('test/glorp.js'), null)
 t.strictSame(coverageMap('test/mocha.js'), ['lib/mocha.js'])