GeezerVison is showing github.com — benchmark,lib,test,tools: use consistent quotes · ide/node@3c31bff
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: benchmark/querystring/querystring-stringify.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,7 @@ function main({ type, n }) { | 17 | 17 | encodemany: { | 18 | 18 | '\u0080\u0083\u0089': 'bar', | 19 | 19 | '\u008C\u008E\u0099': 'quux', | 20 | | - xyzzy: '\u00A5q\u00A3r' | | 20 | + 'xyzzy': '\u00A5q\u00A3r' | 21 | 21 | }, | 22 | 22 | encodelast: { | 23 | 23 | foo: 'bar', | |
Collapse file Copy file name to clipboardExpand all lines: lib/internal/loader/DefaultResolve.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -43,7 +43,7 @@ function search(target, base) { | 43 | 43 | } | 44 | 44 |
| 45 | 45 | const extensionFormatMap = { | 46 | | - __proto__: null, | | 46 | + '__proto__': null, | 47 | 47 | '.mjs': 'esm', | 48 | 48 | '.json': 'json', | 49 | 49 | '.node': 'addon', | |
Collapse file Copy file name to clipboardExpand all lines: test/doctool/test-doctool-json.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -102,9 +102,9 @@ const testData = [ | 102 | 102 | meta: { | 103 | 103 | added: ['v5.3.0', 'v4.2.0'], | 104 | 104 | changes: [ | 105 | | - { version: 'v4.2.0', | | 105 | + { 'version': 'v4.2.0', | 106 | 106 | 'pr-url': 'https://github.com/nodejs/node/pull/3276', | 107 | | - description: 'The `error` parameter can now be ' + | | 107 | + 'description': 'The `error` parameter can now be ' + | 108 | 108 | 'an arrow function.' | 109 | 109 | } | 110 | 110 | ] | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-http-client-headers-array.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -9,8 +9,8 @@ function execute(options) { | 9 | 9 | http.createServer(function(req, res) { | 10 | 10 | const expectHeaders = { | 11 | 11 | 'x-foo': 'boom', | 12 | | - cookie: 'a=1; b=2; c=3', | 13 | | - connection: 'close' | | 12 | + 'cookie': 'a=1; b=2; c=3', | | 13 | + 'connection': 'close' | 14 | 14 | }; | 15 | 15 |
| 16 | 16 | // no Host header when you set headers an array | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-http-raw-headers.js +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,10 +37,10 @@ http.createServer(function(req, res) { | 37 | 37 | 'close' | 38 | 38 | ]; | 39 | 39 | const expectHeaders = { | 40 | | - host: `localhost:${this.address().port}`, | | 40 | + 'host': `localhost:${this.address().port}`, | 41 | 41 | 'transfer-encoding': 'CHUNKED', | 42 | 42 | 'x-bar': 'yoyoyo', | 43 | | - connection: 'close' | | 43 | + 'connection': 'close' | 44 | 44 | }; | 45 | 45 | const expectRawTrailers = [ | 46 | 46 | 'x-bAr', | @@ -96,9 +96,9 @@ http.createServer(function(req, res) { | 96 | 96 | 'chunked' | 97 | 97 | ]; | 98 | 98 | const expectHeaders = { | 99 | | - trailer: 'x-foo', | 100 | | - date: null, | 101 | | - connection: 'close', | | 99 | + 'trailer': 'x-foo', | | 100 | + 'date': null, | | 101 | + 'connection': 'close', | 102 | 102 | 'transfer-encoding': 'chunked' | 103 | 103 | }; | 104 | 104 | res.rawHeaders[3] = null; | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-http2-compat-expect-continue-check.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -33,7 +33,7 @@ server.listen(0, common.mustCall(() => { | 33 | 33 | const client = http2.connect(`http://localhost:${server.address().port}`); | 34 | 34 | const req = client.request({ | 35 | 35 | ':method': 'POST', | 36 | | - expect: '100-continue' | | 36 | + 'expect': '100-continue' | 37 | 37 | }); | 38 | 38 |
| 39 | 39 | let gotContinue = false; | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-http2-compat-expect-continue.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -29,7 +29,7 @@ server.on('listening', common.mustCall(() => { | 29 | 29 | const client = http2.connect(`http://localhost:${server.address().port}`); | 30 | 30 | const req = client.request({ | 31 | 31 | ':method': 'POST', | 32 | | - expect: '100-continue' | | 32 | + 'expect': '100-continue' | 33 | 33 | }); | 34 | 34 |
| 35 | 35 | let gotContinue = false; | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-http2-compat-expect-handling.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,7 +30,7 @@ function nextTest(testsToRun) { | 30 | 30 | ':method': 'GET', | 31 | 31 | ':scheme': 'http', | 32 | 32 | ':authority': `localhost:${port}`, | 33 | | - expect: expectValue | | 33 | + 'expect': expectValue | 34 | 34 | }); | 35 | 35 |
| 36 | 36 | req.on('response', common.mustCall((headers) => { | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-http2-cookies.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -41,8 +41,8 @@ server.on('listening', common.mustCall(() => { | 41 | 41 |
| 42 | 42 | const req = client.request({ | 43 | 43 | ':path': '/', | 44 | | - abc: [1, 2, 3], | 45 | | - cookie: ['a=b', 'c=d', 'e=f'], | | 44 | + 'abc': [1, 2, 3], | | 45 | + 'cookie': ['a=b', 'c=d', 'e=f'], | 46 | 46 | }); | 47 | 47 | req.resume(); | 48 | 48 |
| |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-http2-server-rst-before-respond.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,7 @@ function onStream(stream, headers, flags) { | 17 | 17 | common.expectsError(() => { | 18 | 18 | stream.additionalHeaders({ | 19 | 19 | ':status': 123, | 20 | | - abc: 123 | | 20 | + 'abc': 123 | 21 | 21 | }); | 22 | 22 | }, { code: 'ERR_HTTP2_INVALID_STREAM' }); | 23 | 23 | } | |
|