[Pkg-javascript-commits] [node-detective] 36/119: failing test for (require)("skipme")
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Sep 6 09:44:32 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 71d04007e3efe04464ce7d547790e191f22bd18b
Author: James Halliday <mail at substack.net>
Date: Tue Aug 21 13:03:40 2012 -0700
failing test for (require)("skipme")
---
test/files/skip.js | 7 +++++++
test/skip.js | 9 +++++++++
2 files changed, 16 insertions(+)
diff --git a/test/files/skip.js b/test/files/skip.js
new file mode 100644
index 0000000..89c6c1b
--- /dev/null
+++ b/test/files/skip.js
@@ -0,0 +1,7 @@
+var a = require('a');
+var x = (require)('x');
+var b = require('b');
+var y = (function () { return (require)('y') })();
+var c = require('c');
+var abc = a.b(c);
+(require)('z').x.y();
diff --git a/test/skip.js b/test/skip.js
new file mode 100644
index 0000000..58ed0f0
--- /dev/null
+++ b/test/skip.js
@@ -0,0 +1,9 @@
+var test = require('tap').test;
+var detective = require('../');
+var fs = require('fs');
+var src = fs.readFileSync(__dirname + '/files/skip.js');
+
+test('skip', function (t) {
+ t.deepEqual(detective(src), [ 'a', 'b', 'c' ]);
+ t.end();
+});
--
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