Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed failing tests

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

0 notes on commit 4138f66

Please sign in to comment.
Something went wrong with that request. Please try again.