[Pkg-javascript-commits] [node-module-deps] 251/444: updated deps test

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:00 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 a0490e80ed99adcb03192f6a8f42c7a716a0d5a2
Author: James Halliday <mail at substack.net>
Date:   Sun Jul 20 03:26:00 2014 -0700

    updated deps test
---
 test/deps.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/deps.js b/test/deps.js
index 90a873e..f761e50 100644
--- a/test/deps.js
+++ b/test/deps.js
@@ -15,9 +15,10 @@ var sources = Object.keys(files).reduce(function (acc, file) {
 
 test('deps', function (t) {
     t.plan(1);
-    var p = parser(files.main);
-    var rows = [];
+    var p = parser();
+    p.end({ file: files.main, entry: true });
     
+    var rows = [];
     p.on('data', function (row) { rows.push(row) });
     p.on('end', function () {
         t.same(rows.sort(cmp), [

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