Permalink
Browse files

minor test fix

  • Loading branch information...
1 parent 0edcd21 commit 60b6562fed3b147163c90f1201b71d8168e29ffc @rvagg rvagg committed Sep 25, 2012
Showing with 3 additions and 9 deletions.
  1. +3 −9 test/common/directories-test.js
@@ -39,26 +39,20 @@ vows.describe('broadway/common/directories').addBatch({
"should create the specified directories": function (err, dirs) {
assert.isTrue(!err);
- var exists = false;
dirs.forEach(function (dir) {
- exists = (fs.existsSync || path.existsSync)(dir);
+ assert.isTrue((fs.existsSync || path.existsSync)(dir));
});
-
- assert.isTrue(exists);
},
"the destroy() method": {
topic: function () {
broadway.common.directories.remove(directories, this.callback);
},
"should remove the specified directories": function (err, dirs) {
assert.isTrue(!err);
-
- var exists = true;
+
dirs.forEach(function (dir) {
- exists = (fs.existsSync || path.existsSync)(dir);
+ assert.isFalse((fs.existsSync || path.existsSync)(dir));
});
-
- assert.isFalse(exists);
}
}
}

0 comments on commit 60b6562

Please sign in to comment.