[Pkg-javascript-commits] [node-module-deps] 207/444: sort unicode results

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-module-deps.

commit 7e822dcde7af96c9fd5cd730e6b485453a8977df
Author: James Halliday <mail at substack.net>
Date:   Fri May 9 14:19:43 2014 -0700

    sort unicode results
---
 test/unicode.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/unicode.js b/test/unicode.js
index 97071be..6bbc718 100644
--- a/test/unicode.js
+++ b/test/unicode.js
@@ -20,7 +20,7 @@ test('unicode deps', function (t) {
     
     p.on('data', function (row) { rows.push(row) });
     p.on('end', function () {
-        t.same(rows, [
+        t.same(rows.sort(cmp), [
             {
                 id: files.main,
                 source: sources.main,
@@ -37,6 +37,8 @@ test('unicode deps', function (t) {
                 source: sources.bar,
                 deps: {}
             }
-        ]);
+        ].sort(cmp));
     });
 });
+
+function cmp (a, b) { return a.id < b.id ? -1 : 1 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-module-deps.git



More information about the Pkg-javascript-commits mailing list