[Pkg-javascript-commits] [node-module-deps] 196/444: sorting with typewise.compare in deps test

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:55 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 fdfd841a06d4ab72f49345efc72099d112b65a11
Author: James Halliday <mail at substack.net>
Date:   Thu May 8 22:28:01 2014 -0700

    sorting with typewise.compare in deps test
---
 test/deps.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/deps.js b/test/deps.js
index 2af7fbe..097438e 100644
--- a/test/deps.js
+++ b/test/deps.js
@@ -1,6 +1,7 @@
 var parser = require('../');
 var test = require('tape');
 var fs = require('fs');
+var typewise = require('typewise');
 
 var files = {
     main: __dirname + '/files/main.js',
@@ -20,7 +21,7 @@ test('deps', function (t) {
     
     p.on('data', function (row) { rows.push(row) });
     p.on('end', function () {
-        t.same(rows, [
+        t.same(rows.sort(typewise.compare), [
             {
                 id: files.main,
                 source: sources.main,
@@ -37,6 +38,6 @@ test('deps', function (t) {
                 source: sources.bar,
                 deps: {}
             }
-        ]);
+        ].sort(typewise.compare));
     });
 });

-- 
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