Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"globals": {
"Path": true
}
}
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
language: node_js
node_js:
- 0.4
- 0.6
- 0.12
- 0.10

sudo: false
10 changes: 10 additions & 0 deletions test/fs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Expand All @@ -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()
})
Expand All @@ -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()
})
Expand Down Expand Up @@ -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()
})
Expand Down