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

Version Path
ela-4.1.6 node_modules/walkdir/test/ignore-during.js
ela-4.1.5 node_modules/walkdir/test/ignore-during.js
ela-4.1.4 node_modules/walkdir/test/ignore-during.js
ela-4.1.3 node_modules/walkdir/test/ignore-during.js
ela-4.1.2 node_modules/walkdir/test/ignore-during.js
ela-4.1.1 node_modules/walkdir/test/ignore-during.js
ela-4.1.0 node_modules/walkdir/test/ignore-during.js
ela-4.0.0 node_modules/walkdir/test/ignore-during.js
ela-3.4.3 node_modules/walkdir/test/ignore-during.js
ela-3.4.2 node_modules/walkdir/test/ignore-during.js
ela-3.4.0 node_modules/walkdir/test/ignore-during.js
ela-3.3.1 node_modules/walkdir/test/ignore-during.js
ela-3.3.0 node_modules/walkdir/test/ignore-during.js
ela-3.2.0 node_modules/walkdir/test/ignore-during.js
ela-3.1.1 node_modules/walkdir/test/ignore-during.js
ela-3.1.0 node_modules/walkdir/test/ignore-during.js
ela-3.0.0 node_modules/walkdir/test/ignore-during.js
ela-2.0.0 node_modules/walkdir/test/ignore-during.js
ela-1.1.0 node_modules/walkdir/test/ignore-during.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/walkdir/test/ignore-during.js