���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /home/real/node-v13.0.1/test/report/ |
// Flags: --experimental-report 'use strict'; const common = require('../common'); common.skipIfReportDisabled(); const assert = require('assert'); const helper = require('../common/report'); common.expectWarning('ExperimentalWarning', 'report is an experimental feature. This feature could ' + 'change at any time'); { // Test with no arguments. helper.validateContent(process.report.getReport()); assert.deepStrictEqual(helper.findReports(process.pid, process.cwd()), []); } { // Test with an error argument. helper.validateContent(process.report.getReport(new Error('test error'))); assert.deepStrictEqual(helper.findReports(process.pid, process.cwd()), []); } { // Test with an error with one line stack const error = new Error(); error.stack = 'only one line'; helper.validateContent(process.report.getReport(error)); assert.deepStrictEqual(helper.findReports(process.pid, process.cwd()), []); } // Test with an invalid error argument. [null, 1, Symbol(), function() {}, 'foo'].forEach((error) => { common.expectsError(() => { process.report.getReport(error); }, { code: 'ERR_INVALID_ARG_TYPE' }); });