Sha256: f0c727f7c079005b5962ffac3806eee5511f1d628272f176056459ab581d124d
Contents?: true
Size: 471 Bytes
Versions: 21
Compression:
Stored size: 471 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+'/','')); if(path === __dirname+'/dir/foo/a') this.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