[Pkg-javascript-commits] [node-module-deps] 291/444: pkg test

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

    pkg test
---
 test/pkg.js           | 16 ++++++++++++++++
 test/pkg/main.js      |  1 +
 test/pkg/package.json |  1 +
 3 files changed, 18 insertions(+)

diff --git a/test/pkg.js b/test/pkg.js
new file mode 100644
index 0000000..d2394bf
--- /dev/null
+++ b/test/pkg.js
@@ -0,0 +1,16 @@
+var mdeps = require('../');
+var test = require('tape');
+
+var pkg = require('./pkg/package.json');
+pkg.__dirname = __dirname + '/pkg';
+
+test('pkg', function (t) {
+    t.plan(1);
+    
+    var d = mdeps();
+    d.on('package', function (pkg_) {
+        t.deepEqual(pkg_, pkg);
+    });
+    d.end(__dirname + '/pkg/main.js');
+    d.resume();
+});
diff --git a/test/pkg/main.js b/test/pkg/main.js
new file mode 100644
index 0000000..07a8fbf
--- /dev/null
+++ b/test/pkg/main.js
@@ -0,0 +1 @@
+console.log(555)
diff --git a/test/pkg/package.json b/test/pkg/package.json
new file mode 100644
index 0000000..cc806a7
--- /dev/null
+++ b/test/pkg/package.json
@@ -0,0 +1 @@
+{ "beep": "boop" }

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