[Pkg-javascript-commits] [node-module-deps] 408/444: Windows compatability for test/pkg.js

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:18 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 2faff74bcd31f0a09862427de5edd7b7838bbd8b
Author: Joris van der Wel <joris at jorisvanderwel.com>
Date:   Sun Nov 29 12:51:44 2015 +0100

    Windows compatability for test/pkg.js
    
    The assertion contained a mix of slashes in the path.
---
 test/pkg.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/pkg.js b/test/pkg.js
index 2306a24..6826d1c 100644
--- a/test/pkg.js
+++ b/test/pkg.js
@@ -11,7 +11,7 @@ test('pkg', function (t) {
     var d = mdeps();
     d.on('package', function (pkg_) {
         var pkg = JSON.parse(fs.readFileSync(dirname + pkg_.dir + '/package.json'));
-        pkg.__dirname = dirname + pkg_.dir;
+        pkg.__dirname = path.join(dirname, pkg_.dir);
 
         t.deepEqual(pkg_, pkg);
     });

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