Permalink
Browse files

failing test for (require)("skipme")

  • Loading branch information...
1 parent 15fd68c commit 71d04007e3efe04464ce7d547790e191f22bd18b @substack committed Aug 21, 2012
Showing with 16 additions and 0 deletions.
  1. +7 −0 test/files/skip.js
  2. +9 −0 test/skip.js
View
@@ -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();
View
@@ -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();
+});

0 comments on commit 71d0400

Please sign in to comment.