7f7586a3cacffd8689c4e7fbc93629058a559478.svn-base 301 Bytes
var find = require('../');
var test = require('tap').test;
var path = require('path');

test('error', function (t) {
    t.plan(1);
    
    var finder = find(__dirname + '/does/not/exist');
    finder.on('error', function (err) {
        t.equal(err.path, __dirname + '/does/not/exist');
    });
});