[Pkg-javascript-commits] [node-snapdragon] 04/10: set NODE_PATH
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Fri Jan 12 11:26:32 UTC 2018
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository node-snapdragon.
commit b86afa4fccf67fa90fa61985aa3e89b37ac86011
Author: Pirate Praveen <praveen at debian.org>
Date: Fri Jan 12 13:09:27 2018 +0530
set NODE_PATH
---
debian/rules | 2 ++
debian/tests/upstreamtestsuite | 5 ++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 3e4507e..0011f4e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+export NODE_PATH=debian/node_modules
+
%:
dh $@
diff --git a/debian/tests/upstreamtestsuite b/debian/tests/upstreamtestsuite
index 0b4fb8c..22c302f 100644
--- a/debian/tests/upstreamtestsuite
+++ b/debian/tests/upstreamtestsuite
@@ -3,4 +3,7 @@ set -e
cp -R test test.modified
sed -i `find test.modified -type f` -e "s|require('\.\./|require('snapdragon/|g"
sed -i `find test.modified -type f` -e "s|require('..')|require('snapdragon')|g"
-mocha test.modified
+
+# test only dependencies are not installed in /usr/lib/nodejs/snapdragon
+export NODE_PATH=debian/node_modules
+mocha -R spec test.modified
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-snapdragon.git
More information about the Pkg-javascript-commits
mailing list