diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..ff0ca61 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,5 @@ +{ + "globals": { + "Path": true + } +} diff --git a/.travis.yml b/.travis.yml index 381c985..a30b49c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,7 @@ language: node_js node_js: - 0.4 - - 0.6 \ No newline at end of file + - 0.12 + - 0.10 + +sudo: false diff --git a/test/fs.test.js b/test/fs.test.js index 0a1a2b6..6192a85 100644 --- a/test/fs.test.js +++ b/test/fs.test.js @@ -34,7 +34,9 @@ var Test = { async.files([testDir + "/3.txt"]) .unlink() .end(function(err, file) { + /* jshint ignore:start */ Path.exists(file.path, function(exists) { + /* jshint ignore:end */ assert.ok(!exists) next() }) @@ -45,7 +47,9 @@ var Test = { async.files([testDir + "/emptydir"]) .rmdir() .end(function(err, file) { + /* jshint ignore:start */ Path.exists(file.path, function(exists) { + /* jshint ignore:end */ assert.ok(!exists) next() }) @@ -57,7 +61,9 @@ var Test = { .rmdir() .end(function(err, file) { assert.ok(err) + /* jshint ignore:start */ Path.exists(file.path, function(exists) { + /* jshint ignore:end */ assert.ok(exists) next() }) @@ -130,14 +136,18 @@ var Test = { async.files([testDir + "/newdir"]) .mkdir(0755) .each(function(file, next) { + /* jshint ignore:start */ Path.exists(file.path, function(exists) { + /* jshint ignore:end */ assert.ok(exists) next() }) }) .rmdir() .each(function(file, next) { + /* jshint ignore:start */ Path.exists(file.path, function(exists) { + /* jshint ignore:end */ assert.ok(!exists) next() })