[Pkg-javascript-commits] [node-module-deps] 141/444: global transform test passes
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:47:50 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 9b1c97017a3ca5d77c9f1c1b7be6e2cbbee4e46f
Author: James Halliday <mail at substack.net>
Date: Sat Dec 28 19:30:14 2013 -0800
global transform test passes
---
index.js | 2 +-
test/tr_global.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index 781cde0..40c9fb4 100644
--- a/index.js
+++ b/index.js
@@ -157,7 +157,7 @@ module.exports = function (mains, opts) {
});
trx = [].concat(n).filter(Boolean);
}
- return trx;
+ return trx.concat(opts.globalTransform || []);
}
function applyTransforms (file, trx, src, pkg) {
diff --git a/test/tr_global.js b/test/tr_global.js
index 9e21085..c1ea7df 100644
--- a/test/tr_global.js
+++ b/test/tr_global.js
@@ -20,7 +20,7 @@ test('global transforms', function (t) {
p.pipe(JSONStream.stringify()).pipe(pack).pipe(concat(function (src) {
Function(['console'], src)({
log: function (msg) {
- t.equal(msg, '111111');
+ t.equal(msg, 111111);
}
});
}));
--
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