[Pkg-javascript-commits] [node-module-deps] 284/444: passing noparse row test

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:05 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 830c12ed5fbaefbc2f56dc606434a909da428f20
Author: James Halliday <mail at substack.net>
Date:   Thu Jul 24 15:03:06 2014 -0700

    passing noparse row test
---
 index.js            | 2 +-
 test/noparse_row.js | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index b9b6040..7be8118 100644
--- a/index.js
+++ b/index.js
@@ -290,7 +290,7 @@ Deps.prototype.walk = function (id, parent, cb) {
         }));
         
         function fromSource (src) {
-            var deps = self.parseDeps(file, src);
+            var deps = rec.noparse ? [] : self.parseDeps(file, src);
             if (deps) fromDeps(file, src, pkg, deps);
         }
     });
diff --git a/test/noparse_row.js b/test/noparse_row.js
index 4f54129..947bc0e 100644
--- a/test/noparse_row.js
+++ b/test/noparse_row.js
@@ -28,7 +28,8 @@ test('noParse row', function (t) {
                 file: files.main,
                 source: sources.main,
                 entry: true,
-                noparse: true
+                noparse: true,
+                deps: {}
             }
         ].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