From 7ad8c3b5696991c9433bfb044e1da54e177237af Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 22 Jul 2013 16:41:52 +0800 Subject: [PATCH] Use walkdir instead of findit, which supports Windows. --- package.json | 2 +- spec/index.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9538a700454..097ee5cee0e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "coffee-script": "1.6.2", "mocha": "*", - "findit": "*", + "walkdir": "*", "unzip": "*" }, diff --git a/spec/index.html b/spec/index.html index 179226ae05e..c80c209fdc1 100644 --- a/spec/index.html +++ b/spec/index.html @@ -20,14 +20,14 @@ 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'); });