You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
386 B
18 lines
386 B
var test = require('tape')
|
|
var walkdir = require('../')
|
|
|
|
test('async events',function(t){
|
|
var paths = [],
|
|
files = [],
|
|
dirs = [];
|
|
|
|
var emitter = walkdir(__dirname+'/dir/foo',function(path){
|
|
paths.push(path.replace(__dirname+'/',''));
|
|
}).ignore(__dirname+'/dir/foo');
|
|
|
|
emitter.on('end',function(){
|
|
t.equals(paths.length,0,'should have no paths')
|
|
t.end();
|
|
})
|
|
|
|
})
|