Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More path.join

  • Loading branch information...
commit c2929047e6461aae971b3756f7b8107f447ad29b 1 parent d7af447
mde authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 test/file.js
View
16 test/file.js
@@ -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});
}
Please sign in to comment.
Something went wrong with that request. Please try again.