diff options
author | LakshmiSwethaG <lakshmigopireddy@in.ibm.com> | 2018-09-05 10:39:08 -0400 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2019-01-18 10:36:39 +0530 |
commit | 55e0ad9ae690f6d73b0caff7b813eb4d61195b94 (patch) | |
tree | d85d8d5bf3b8efb24b0d79886af706584a076721 /test/common/index.js | |
parent | 7f4053ed1381d7001dbdaa12f064847aaf4d0ecf (diff) | |
download | node-new-55e0ad9ae690f6d73b0caff7b813eb4d61195b94.tar.gz |
test: add node-report tests
One test per each API, so that additional tests in future are modular.
test/common/report.js contain common functions that tests leverage.
PR-URL: https://github.com/nodejs/node/pull/22712
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <Michael_Dawson@ca.ibm.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Diffstat (limited to 'test/common/index.js')
-rw-r--r-- | test/common/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/common/index.js b/test/common/index.js index 72ad0c3b77..e7df290c3e 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -632,6 +632,12 @@ function skipIfInspectorDisabled() { } } +function skipIfReportDisabled() { + if (!process.config.variables.node_report) { + skip('Node Report is disabled'); + } +} + function skipIf32Bits() { if (bits < 64) { skip('The tested feature is not available in 32bit builds'); @@ -758,6 +764,7 @@ module.exports = { skipIf32Bits, skipIfEslintMissing, skipIfInspectorDisabled, + skipIfReportDisabled, skipIfWorker, get localhostIPv6() { return '::1'; }, |