Skip to content

Commit 563bed0

Browse files
TrottMylesBorins
authored andcommitted
benchmark,lib,test,tools: use consistent quotes
In preparation for a linting rule, use consistent quotation for properties in objects. PR-URL: #19156 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Teddy Katz <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 84acb9f commit 563bed0

14 files changed

+25
-25
lines changed

‎benchmark/querystring/querystring-stringify.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function main({type, n }){
1717
encodemany: {
1818
'\u0080\u0083\u0089': 'bar',
1919
'\u008C\u008E\u0099': 'quux',
20-
xyzzy: '\u00A5q\u00A3r'
20+
'xyzzy': '\u00A5q\u00A3r'
2121
},
2222
encodelast: {
2323
foo: 'bar',

‎lib/internal/loader/DefaultResolve.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function search(target, base){
4040
}
4141

4242
constextensionFormatMap={
43-
__proto__: null,
43+
'__proto__': null,
4444
'.mjs': 'esm',
4545
'.json': 'json',
4646
'.node': 'addon',

‎test/doctool/test-doctool-json.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ const testData = [
102102
meta: {
103103
added: ['v5.3.0','v4.2.0'],
104104
changes: [
105-
{version: 'v4.2.0',
105+
{'version': 'v4.2.0',
106106
'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 '+
108108
'an arrow function.'
109109
}
110110
]

‎test/parallel/test-http-client-headers-array.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ function execute(options){
99
http.createServer(function(req,res){
1010
constexpectHeaders={
1111
'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'
1414
};
1515

1616
// no Host header when you set headers an array

‎test/parallel/test-http-raw-headers.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ http.createServer(function(req, res){
3737
'close'
3838
];
3939
constexpectHeaders={
40-
host: `localhost:${this.address().port}`,
40+
'host': `localhost:${this.address().port}`,
4141
'transfer-encoding': 'CHUNKED',
4242
'x-bar': 'yoyoyo',
43-
connection: 'close'
43+
'connection': 'close'
4444
};
4545
constexpectRawTrailers=[
4646
'x-bAr',
@@ -96,9 +96,9 @@ http.createServer(function(req, res){
9696
'chunked'
9797
];
9898
constexpectHeaders={
99-
trailer: 'x-foo',
100-
date: null,
101-
connection: 'close',
99+
'trailer': 'x-foo',
100+
'date': null,
101+
'connection': 'close',
102102
'transfer-encoding': 'chunked'
103103
};
104104
res.rawHeaders[3]=null;

‎test/parallel/test-http2-compat-expect-continue-check.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ server.listen(0, common.mustCall(() =>{
3333
constclient=http2.connect(`http://localhost:${server.address().port}`);
3434
constreq=client.request({
3535
':method': 'POST',
36-
expect: '100-continue'
36+
'expect': '100-continue'
3737
});
3838

3939
letgotContinue=false;

‎test/parallel/test-http2-compat-expect-continue.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ server.on('listening', common.mustCall(() =>{
2929
constclient=http2.connect(`http://localhost:${server.address().port}`);
3030
constreq=client.request({
3131
':method': 'POST',
32-
expect: '100-continue'
32+
'expect': '100-continue'
3333
});
3434

3535
letgotContinue=false;

‎test/parallel/test-http2-compat-expect-handling.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function nextTest(testsToRun){
3030
':method': 'GET',
3131
':scheme': 'http',
3232
':authority': `localhost:${port}`,
33-
expect: expectValue
33+
'expect': expectValue
3434
});
3535

3636
req.on('response',common.mustCall((headers)=>{

‎test/parallel/test-http2-cookies.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ server.on('listening', common.mustCall(() =>{
4141

4242
constreq=client.request({
4343
':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'],
4646
});
4747
req.resume();
4848

‎test/parallel/test-http2-server-rst-before-respond.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function onStream(stream, headers, flags){
1717
common.expectsError(()=>{
1818
stream.additionalHeaders({
1919
':status': 123,
20-
abc: 123
20+
'abc': 123
2121
});
2222
},{code: 'ERR_HTTP2_INVALID_STREAM'});
2323
}

0 commit comments

Comments
(0)