8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be24cc0 commit 4ff1d31Copy full SHA for 4ff1d31
test/parallel/test-http-client-defaults.js
@@ -0,0 +1,24 @@
1
+'use strict';
2
+require('../common');
3
+const assert = require('assert');
4
+const ClientRequest = require('http').ClientRequest;
5
+
6
+function noop() {}
7
8
+{
9
+ const req = new ClientRequest({ createConnection: noop });
10
+ assert.strictEqual(req.path, '/');
11
+ assert.strictEqual(req.method, 'GET');
12
+}
13
14
15
+ const req = new ClientRequest({ method: '', createConnection: noop });
16
17
18
19
20
21
+ const req = new ClientRequest({ path: '', createConnection: noop });
22
23
24
0 commit comments