mirror of
https://github.com/nodejs/node.git
synced 2025-05-20 08:49:49 +00:00

Enable linting for the test directory. A number of changes was made so all tests conform the current rules used by lib and src directories. The only exception for tests is that unreachable (dead) code is allowed. test-fs-non-number-arguments-throw had to be excluded from the changes because of a weird issue on Windows CI. PR-URL: https://github.com/nodejs/io.js/pull/1721 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
18 lines
490 B
JavaScript
18 lines
490 B
JavaScript
/* eslint-disable strict */
|
|
try {
|
|
var crypto = require('crypto');
|
|
} catch (e) {
|
|
console.log('Not compiled with OPENSSL support.');
|
|
process.exit();
|
|
}
|
|
|
|
// the missing var keyword is intentional
|
|
domain = require('domain');
|
|
|
|
// should not throw a 'TypeError: undefined is not a function' exception
|
|
crypto.randomBytes(8);
|
|
crypto.randomBytes(8, function() {});
|
|
crypto.pseudoRandomBytes(8);
|
|
crypto.pseudoRandomBytes(8, function() {});
|
|
crypto.pbkdf2('password', 'salt', 8, 8, function() {});
|