]> khamidou — GitHub mirrors - electron.git/commitdiff
Use walkdir instead of findit, which supports Windows.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 22 Jul 2013 08:41:52 +0000 (16:41 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 22 Jul 2013 08:41:52 +0000 (16:41 +0800)
package.json
spec/index.html

index 9538a700454e07ac882ad3c0adeacdae8e70d383..097ee5cee0e704f163ed44a608e86c32b198cfa9 100644 (file)
@@ -6,7 +6,7 @@
     "coffee-script": "1.6.2",
 
     "mocha": "*",
-    "findit": "*",
+    "walkdir": "*",
     "unzip": "*"
   },
 
index 179226ae05e4593473874b053a1215ef8d31ad89..c80c209fdc1be6297eaa9820d5191ea3fcf31c33 100644 (file)
   if (query.invert) mocha.invert();
 
   // Read all test files.
-  var finder = require('findit').find(__dirname);
+  var walker = require('walkdir').walk(__dirname);
 
-  finder.on('file', function(file) {
+  walker.on('file', function(file) {
     if (/.coffee$/.test(file))
       mocha.addFile(file);
   });
 
-  finder.on('end', function() {
+  walker.on('end', function() {
     mocha.run(function() {
       Mocha.utils.highlightTags('code');
     });