1 var mkdirp = require('../');
2 var path = require('path');
3 var fs = require('fs');
4 var test = require('tap').test;
6 test('root', function (t) {
7 // '/' on unix, 'c:/' on windows.
8 var file = path.resolve('/');
10 mkdirp(file, 0755, function (err) {
12 fs.stat(file, function (er, stat) {
14 t.ok(stat.isDirectory(), 'target is a directory');