[Pkg-javascript-commits] [node-module-deps] 35/444: move to tr_sh

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:40 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 2a975fdd622895e2fdb9f64592a4b80190bb666d
Author: James Halliday <mail at substack.net>
Date:   Wed Feb 27 04:34:04 2013 -0800

    move to tr_sh
---
 test/files/tr/f.js                        | 1 -
 test/files/tr/main.js                     | 7 -------
 test/files/tr/node_modules/g/index.js     | 1 -
 test/files/tr/node_modules/g/package.json | 6 ------
 test/files/tr/node_modules/m/index.js     | 3 ---
 test/{tr.js => tr_sh.js}                  | 2 +-
 6 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/test/files/tr/f.js b/test/files/tr/f.js
deleted file mode 100644
index 39c9ea4..0000000
--- a/test/files/tr/f.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = function (x) { return x + BBB }
diff --git a/test/files/tr/main.js b/test/files/tr/main.js
deleted file mode 100644
index 084b20e..0000000
--- a/test/files/tr/main.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var f = require('./f.js');
-var m = require('m');
-var g = require('g');
-
-t.equal(m(f(AAA)), 555, 'transformation scope');
-t.equal(g(3), 333, 'sub-transformation applied');
-t.equal(typeof GGG, 'undefined', 'GGG leak');
diff --git a/test/files/tr/node_modules/g/index.js b/test/files/tr/node_modules/g/index.js
deleted file mode 100644
index ee3356a..0000000
--- a/test/files/tr/node_modules/g/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = function (x) { return x * GGG }
diff --git a/test/files/tr/node_modules/g/package.json b/test/files/tr/node_modules/g/package.json
deleted file mode 100644
index a3a7dbe..0000000
--- a/test/files/tr/node_modules/g/package.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
-  "main": "index.js",
-  "browserify": {
-    "transform": "sed s/GGG/111/g"
-  }
-}
diff --git a/test/files/tr/node_modules/m/index.js b/test/files/tr/node_modules/m/index.js
deleted file mode 100644
index 4cd0ff3..0000000
--- a/test/files/tr/node_modules/m/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var AAA = 200, BBB = 300;
-
-module.exports = function (x) { return AAA + BBB + x }
diff --git a/test/tr.js b/test/tr_sh.js
similarity index 89%
rename from test/tr.js
rename to test/tr_sh.js
index 4d4ed24..abfee2f 100644
--- a/test/tr.js
+++ b/test/tr_sh.js
@@ -5,7 +5,7 @@ var packer = require('browser-pack');
 
 test('transform', function (t) {
     t.plan(3);
-    var p = mdeps(__dirname + '/files/tr/main.js', {
+    var p = mdeps(__dirname + '/files/tr_sh/main.js', {
         transform: [ 'sed s/AAA/5/', 'sed s/BBB/50/' ]
     });
     var pack = packer();

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