We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5d0fd9 commit 57e2ec4Copy full SHA for 57e2ec4
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