]>
git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/ex-mode/node_modules/space-pen/node_modules/grim/node_modules/coffeestack/node_modules/coffee-script/node_modules/mkdirp/test/root.js
97ad7a2f358e938f97770aba4af820169279d9c2
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');