Sha256: 87b20bd452c96da6c95027ce23de585be00c54d1a7e1242c7790b72bafc71461
Contents?: true
Size: 426 Bytes
Versions: 21
Compression:
Stored size: 426 Bytes
Contents
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/a'); emitter.on('end',function(){ t.equals(paths.sort().join('|'),'dir/foo/a|dir/foo/x','should have ignored under a'); t.end(); }) })
Version data entries
21 entries across 21 versions & 2 rubygems