Skip to content

Commit

Permalink
test fs.mkdirp
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Mar 10, 2014
1 parent b33ff5e commit c952a61
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/index.js
@@ -1,5 +1,6 @@
var co = require('co');
var fs = require('..');
var path = require('path');

describe('.walk()', function () {
it('should work', function (done) {
Expand All @@ -11,3 +12,12 @@ describe('.walk()', function () {
});
});

describe('.mkdirp()', function () {
it('should work', function (done) {
co(function *() {
var res = yield fs.mkdirp('test/a/b/c/d/e/f/g')
res.path.should.equal(path.resolve('test/a/b/c/d/e/f/g'));
})(done);
});
});

0 comments on commit c952a61

Please sign in to comment.