From de98e0b232509d5f40c135d540a70e415272ff85 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 3 May 2017 15:35:00 +0200 Subject: node_modules --- node_modules/walkdir/test/ignore-first.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 node_modules/walkdir/test/ignore-first.js (limited to 'node_modules/walkdir/test/ignore-first.js') diff --git a/node_modules/walkdir/test/ignore-first.js b/node_modules/walkdir/test/ignore-first.js new file mode 100644 index 000000000..7db03828d --- /dev/null +++ b/node_modules/walkdir/test/ignore-first.js @@ -0,0 +1,18 @@ +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(); + }) + +}) -- cgit v1.2.3