mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: abstract skip functionality to common
The tap skipping output is so prevalent yet obscure in nature that we
ought to move it into it's own function in test/common.js
Re-do of 52bae222a3 for v4.x
Ref: https://github.com/nodejs/node/pull/6697
PR-URL: https://github.com/nodejs/node/pull/7114
Reviewed-By: Myles Borins <myles.borins@gmail.com>
This commit is contained in:
1 parent
eadb7e5b20
commit
4067cde7ee
219 files changed
+291
-294
No files matched your search
@@ -6,7 +6,7 @@ var common = require('../common');
|
||||
var assert = require('assert');
|
||||
|
||||
if (!common.hasCrypto) {
|
||||
console.log('1..0 # Skipped: missing crypto');
|
||||
common.skip('missing crypto');
|
||||
return;
|
||||
}
|
||||
var https = require('https');
|
||||
|
||||
Reference in new issue
Block a user