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.
15 lines
404 B
JavaScript
15 lines
404 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
console.error(process.uptime());
|
|
assert.ok(process.uptime() <= 2);
|
|
|
|
var original = process.uptime();
|
|
|
|
setTimeout(function() {
|
|
var uptime = process.uptime();
|
|
// some wiggle room to account for timer
|
|
// granularity, processor speed, and scheduling
|
|
assert.ok(uptime >= original + 2);
|
|
assert.ok(uptime <= original + 3);
|
|
}, 2000);
|