[Pkg-javascript-commits] [node-module-deps] 149/444: passing test for relative transforms

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:51 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 3fcc4fcfe605ef8bc097d12c73ea56bc78dff8c7
Author: James Halliday <mail at substack.net>
Date:   Fri Jan 3 18:32:14 2014 -0800

    passing test for relative transforms
---
 test/files/tr_module/node_modules/g/index.js     | 2 +-
 test/files/tr_module/node_modules/g/package.json | 2 +-
 test/files/tr_module/node_modules/g/x.js         | 7 +++++++
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/test/files/tr_module/node_modules/g/index.js b/test/files/tr_module/node_modules/g/index.js
index ee3356a..e82e92e 100644
--- a/test/files/tr_module/node_modules/g/index.js
+++ b/test/files/tr_module/node_modules/g/index.js
@@ -1 +1 @@
-module.exports = function (x) { return x * GGG }
+module.exports = function (x) { return x * (GGG - 3 * XXX + 9) }
diff --git a/test/files/tr_module/node_modules/g/package.json b/test/files/tr_module/node_modules/g/package.json
index 3a16bd4..ce9625d 100644
--- a/test/files/tr_module/node_modules/g/package.json
+++ b/test/files/tr_module/node_modules/g/package.json
@@ -1,6 +1,6 @@
 {
   "main": "index.js",
   "browserify": {
-    "transform": "insert-ggg"
+    "transform": [ "insert-ggg", "./x.js" ]
   }
 }
diff --git a/test/files/tr_module/node_modules/g/x.js b/test/files/tr_module/node_modules/g/x.js
new file mode 100644
index 0000000..c33ec81
--- /dev/null
+++ b/test/files/tr_module/node_modules/g/x.js
@@ -0,0 +1,7 @@
+var through = require('through');
+
+module.exports = function (file) {
+    return through(function (buf) {
+        this.queue(String(buf).replace(/XXX/g, '3'));
+    });
+};

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