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.
24 lines
535 B
JavaScript
24 lines
535 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
var exec = require('child_process').exec;
|
|
var join = require('path').join;
|
|
|
|
var nodePath = process.argv[0];
|
|
var script = join(common.fixturesDir, 'print-10-lines.js');
|
|
|
|
var cmd = '"' + nodePath + '" "' + script + '" | head -2';
|
|
|
|
var finished = false;
|
|
|
|
exec(cmd, function(err, stdout, stderr) {
|
|
if (err) throw err;
|
|
var lines = stdout.split('\n');
|
|
assert.equal(3, lines.length);
|
|
finished = true;
|
|
});
|
|
|
|
|
|
process.on('exit', function() {
|
|
assert.ok(finished);
|
|
});
|