Permalink
Browse files

Fixed failing tests

  • Loading branch information...
1 parent e7ca01d commit 4138f66402f6518da814b3eeaee97247b3cc0822 @lukebayes committed Aug 28, 2012
Showing with 14 additions and 13 deletions.
  1. +6 −5 package.json
  2. +5 −5 runner.js
  3. +3 −3 test/each_file_or_directory_test.js
View
@@ -1,19 +1,20 @@
{
"name" : "fileutils",
- "version" : "0.0.1",
+ "version" : "0.1.0",
"description" : "Some utilities that diminish the suck of working with the file system in node",
"keywords" : ["files", "directories", "fileutil"],
"homepage" : "http://github.com/lukebayes/node-fileutils",
"author" : {
"name" : "Luke Bayes",
- "email" : "lbayes@patternpark.com",
- "url" : "http://lukebayes.com",
+ "email" : "lukebayes@gmail.com",
+ "url" : "http://lukebayes.com"
},
"repository" : {
"type" : "git",
- "url" : "https://github.com/lukebayes/node-fileutils",
+ "url" : "https://github.com/lukebayes/node-fileutils"
},
"main" : "src/fileutils.js",
"test" : "runner.js",
- "engines" : { "node" : ">= 0.4.0" },
+ "engines" : { "node" : ">= 0.4.0" }
}
+
View
@@ -1,10 +1,10 @@
-require.paths.unshift('src');
-require.paths.unshift('test');
+// NOTE(lbayes): Run with:
+// NODE_PATH=src node runner.js
-require('each_file_or_directory_test');
-require('each_file_test');
-require('each_file_matching_test');
+require('./test/each_file_or_directory_test');
+require('./test/each_file_test');
+require('./test/each_file_matching_test');
process.on('exit', function() {
console.log('>> Exiting after all tests');
@@ -15,8 +15,8 @@ var eachFileOrDirectory = require('fileutils').eachFileOrDirectory;
stats.push(stat);
}, function(items, stats) {
completeCalled = true;
- assert.equal(7, files.length);
- assert.equal(7, stats.length);
+ assert.equal(6, files.length);
+ assert.equal(6, stats.length);
});
setTimeout(function() {
@@ -33,7 +33,7 @@ var eachFileOrDirectory = require('fileutils').eachFileOrDirectory;
fileHandlerCalled = true;
files.push(file);
}, function(items, stats) {
- assert.equal(13, files.length);
+ assert.equal(11, files.length);
completeCalled = true;
});

0 comments on commit 4138f66

Please sign in to comment.