The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
21 lines
451 B
JavaScript
21 lines
451 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
var fs = require('fs');
|
|
var N = 100;
|
|
var j = 0;
|
|
|
|
for (var i = 0; i < N; i++) {
|
|
// these files don't exist
|
|
fs.stat('does-not-exist-' + i, function(err) {
|
|
if (err) {
|
|
j++; // only makes it to about 17
|
|
console.log('finish ' + j);
|
|
} else {
|
|
throw new Error('this shouldn\'t be called');
|
|
}
|
|
});
|
|
}
|
|
|
|
process.on('exit', function() {
|
|
assert.equal(N, j);
|
|
});
|