File: err.js

package info (click to toggle)
node-findit2 2.2.3-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 120 kB
  • sloc: javascript: 318; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
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');
    });
});