1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 22:33:17 +00:00
musix-oss/node_modules/walkdir/test/ignore-first.js

19 lines
386 B
JavaScript
Raw Normal View History

2020-03-03 20:30:50 +00:00
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();
})
})