mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02: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 PR-URL: https://github.com/nodejs/node/pull/6697 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
This commit is contained in:
parent
dffafde7f1
commit
52bae222a3
229 changed files with 300 additions and 304 deletions
|
@ -3,7 +3,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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue