Permalink
Browse files

More path.join

  • Loading branch information...
1 parent d7af447 commit c2929047e6461aae971b3756f7b8107f447ad29b mde committed Sep 30, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 test/file.js
View
@@ -81,19 +81,19 @@ tests = {
}
, 'test readdirR': function () {
- var res = []
- , expected = [
- 'foo'
- , 'foo/bar'
- , 'foo/bar/baz'
- , 'foo/bar/baz/qux'
- ]
+ var expected = [
+ ['foo']
+ , ['foo', 'bar']
+ , ['foo', 'bar', 'baz']
+ , ['foo', 'bar', 'baz', 'qux']
+ ]
+ , res;
file.mkdirP('foo/bar/baz/qux', {silent: true});
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 c292904

Please sign in to comment.