[Pkg-javascript-commits] [node-detective] 10/119: expressions work in dotted tests too

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:44:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-detective.

commit 105eb2897e733360b4151b8fccfb9e0e82117f36
Author: James Halliday <mail at substack.net>
Date:   Sun Jun 19 18:03:33 2011 -0700

    expressions work in dotted tests too
---
 test/both.js       | 2 +-
 test/files/both.js | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/both.js b/test/both.js
index 8e97f84..53e704e 100644
--- a/test/both.js
+++ b/test/both.js
@@ -6,5 +6,5 @@ var src = fs.readFileSync(__dirname + '/files/both.js');
 exports.both = function () {
     var modules = detective.find(src);
     assert.deepEqual(modules.strings, [ 'a', 'b' ]);
-    assert.deepEqual(modules.expressions, [ '"c"+x' ]);
+    assert.deepEqual(modules.expressions, [ '"c"+x', '"d"+y' ]);
 };
diff --git a/test/files/both.js b/test/files/both.js
index 5f6c1b3..4c3f390 100644
--- a/test/files/both.js
+++ b/test/files/both.js
@@ -1,3 +1,4 @@
 require('a');
 require('b');
 require('c'+x);
+var moo = require('d'+y).moo;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-detective.git



More information about the Pkg-javascript-commits mailing list