File: fix-test-for-node-12.patch

package info (click to toggle)
node-klaw 4.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 192 kB
  • sloc: javascript: 343; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: fix for Node.js ≥ 12
Author: Xavier Guimard <yadd@debian.org>
Forwarded: no
Last-Update: 2020-01-22

--- a/tests/walk_path-sorter.test.js
+++ b/tests/walk_path-sorter.test.js
@@ -32,7 +32,7 @@
       })
       expected.unshift(testDir)
 
-      t.same(items, expected)
+      t.same(items.sort(), expected.sort())
       t.end()
     })
 })