Permalink
Browse files

Use path.join in dir test

  • Loading branch information...
1 parent 5084556 commit d7af44726c631f376ed5ace821e47bedcd467fd2 mde committed Sep 30, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 test/file.js
View
@@ -35,16 +35,16 @@ tests = {
, 'test mkdirP': function () {
var expected = [
- 'foo'
- , 'foo/bar'
- , 'foo/bar/baz'
- , 'foo/bar/baz/qux'
+ ['foo']
+ , ['foo', 'bar']
+ , ['foo', 'bar', 'baz']
+ , ['foo', 'bar', 'baz', 'qux']
]
, res;
file.mkdirP('foo/bar/baz/qux');
res = file.readdirR('foo');
for (var i = 0, ii = res.length; i < ii; i++) {
- assert.equal(expected[i], res[i]);
+ assert.equal(path.join.apply(path, expected[i]), res[i]);
}
file.rmRf('foo', {silent: true});
}

0 comments on commit d7af447

Please sign in to comment.