Sha256: e78dde33b19379f7cf455b7acda0a41dc0e5158bcbafcde4333359c32b8a74d5

Contents?: true

Size: 345 Bytes

Versions: 21

Compression:

Stored size: 345 Bytes

Contents

var test = require('tape'),
walk  = require('../walkdir.js');

test('should be able to end walk after first path',function(t){

  var paths = [];

  var em = walk('../',function(path){
    paths.push(path);
    this.end();
  });

  em.on('end',function(){
    t.equals(paths.length,1,'should have only found one path');
    t.end();
  });

});

Version data entries

21 entries across 21 versions & 2 rubygems

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