[Pkg-javascript-commits] [node-module-deps] 287/444: failing dotdot 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 4fdc7a38a328d60a815b63664054fafc27e53716
Author: James Halliday <mail at substack.net>
Date:   Thu Jul 24 16:55:30 2014 -0700

    failing dotdot test
---
 test/dotdot.js           | 19 +++++++++++++++++++
 test/dotdot/abc/index.js |  2 ++
 test/dotdot/index.js     |  1 +
 3 files changed, 22 insertions(+)

diff --git a/test/dotdot.js b/test/dotdot.js
new file mode 100644
index 0000000..7e26b11
--- /dev/null
+++ b/test/dotdot.js
@@ -0,0 +1,19 @@
+var mdeps = require('../');
+var test = require('tape');
+var through = require('through2');
+
+test(function (t) {
+    var expected = [
+        __dirname + '/dotdot/abc/index.js',
+        __dirname + '/dotdot/index.js'
+    ];
+    t.plan(expected.length);
+    
+    var d = mdeps();
+    d.end(__dirname + '/dotdot/abc/index.js');
+    
+    d.pipe(through.obj(function (row, enc, next) {
+        t.deepEqual(row.file, expected.shift());
+        next();
+    }));
+});
diff --git a/test/dotdot/abc/index.js b/test/dotdot/abc/index.js
new file mode 100644
index 0000000..67f2534
--- /dev/null
+++ b/test/dotdot/abc/index.js
@@ -0,0 +1,2 @@
+var x = require('..');
+console.log(x);
diff --git a/test/dotdot/index.js b/test/dotdot/index.js
new file mode 100644
index 0000000..afec736
--- /dev/null
+++ b/test/dotdot/index.js
@@ -0,0 +1 @@
+module.exports = 'whatever'

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