1 var test = require('tape'),
3 path = require('path'),
4 walk = require('../walkdir.js');
6 test('should not emit fail events for empty dirs',function(t){
7 fs.mkdir('./empty',function(err,data){
9 t.equals(err.code,'EEXIST','if error code on mkdir for fixture it should only be because it exists already');
19 em.on('fail',function(path,err){
23 em.on('empty',function(path,err){
27 em.on('end',function(){
28 t.equals(fails.length,0,'should not have any fails');
29 t.equals(path.basename(emptys[0]),'empty','should find empty dir');