mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
590 B
23 lines
590 B
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const ClientRequest = require('http').ClientRequest;
|
|
|
|
{
|
|
const req = new ClientRequest({ createConnection: () => {} });
|
|
assert.strictEqual(req.path, '/');
|
|
assert.strictEqual(req.method, 'GET');
|
|
}
|
|
|
|
{
|
|
const req = new ClientRequest({ method: '', createConnection: () => {} });
|
|
assert.strictEqual(req.path, '/');
|
|
assert.strictEqual(req.method, 'GET');
|
|
}
|
|
|
|
{
|
|
const req = new ClientRequest({ path: '', createConnection: () => {} });
|
|
assert.strictEqual(req.path, '/');
|
|
assert.strictEqual(req.method, 'GET');
|
|
}
|
|
|