11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_cirequire('../common'); 41cb0ef41Sopenharmony_ciconst assert = require('assert'); 51cb0ef41Sopenharmony_ciconst ClientRequest = require('http').ClientRequest; 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci{ 81cb0ef41Sopenharmony_ci const req = new ClientRequest({ createConnection: () => {} }); 91cb0ef41Sopenharmony_ci assert.strictEqual(req.path, '/'); 101cb0ef41Sopenharmony_ci assert.strictEqual(req.method, 'GET'); 111cb0ef41Sopenharmony_ci} 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_ci{ 141cb0ef41Sopenharmony_ci const req = new ClientRequest({ method: '', createConnection: () => {} }); 151cb0ef41Sopenharmony_ci assert.strictEqual(req.path, '/'); 161cb0ef41Sopenharmony_ci assert.strictEqual(req.method, 'GET'); 171cb0ef41Sopenharmony_ci} 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_ci{ 201cb0ef41Sopenharmony_ci const req = new ClientRequest({ path: '', createConnection: () => {} }); 211cb0ef41Sopenharmony_ci assert.strictEqual(req.path, '/'); 221cb0ef41Sopenharmony_ci assert.strictEqual(req.method, 'GET'); 231cb0ef41Sopenharmony_ci} 24