11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciconst assert = require('node:assert'); 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciconst { expectedPort, expectedInitialPort, expectedHost } = process.env; 61cb0ef41Sopenharmony_ciconst debugOptions = 71cb0ef41Sopenharmony_ci require('internal/options').getOptionValue('--inspect-port'); 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ciif ('expectedPort' in process.env) { 101cb0ef41Sopenharmony_ci assert.strictEqual(process.debugPort, +expectedPort); 111cb0ef41Sopenharmony_ci} 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_ciif ('expectedInitialPort' in process.env) { 141cb0ef41Sopenharmony_ci assert.strictEqual(debugOptions.port, +expectedInitialPort); 151cb0ef41Sopenharmony_ci} 161cb0ef41Sopenharmony_ci 171cb0ef41Sopenharmony_ciif ('expectedHost' in process.env) { 181cb0ef41Sopenharmony_ci assert.strictEqual(debugOptions.host, expectedHost); 191cb0ef41Sopenharmony_ci} 20