aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-http-outgoing-proto.js
diff options
context:
space:
mode:
authorSebastiaan Deckers <sebdeckers83@gmail.com>2017-07-10 20:55:21 -0400
committerRefael Ackermann <refack@gmail.com>2017-07-21 15:13:47 -0400
commitbb294059040def8e8c0b1719cc17f6537ab5cb39 (patch)
treeacc6b7bcf88da8e6078fa5ab91f6718289f32bbf /test/parallel/test-http-outgoing-proto.js
parent4f875222445b07016a8294fa5a5bf7418c735489 (diff)
downloadandroid-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.gz
android-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.bz2
android-node-v8-bb294059040def8e8c0b1719cc17f6537ab5cb39.zip
lib,src: fix consistent spacing inside braces
PR-URL: https://github.com/nodejs/node/pull/14162 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-http-outgoing-proto.js')
-rw-r--r--test/parallel/test-http-outgoing-proto.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-http-outgoing-proto.js b/test/parallel/test-http-outgoing-proto.js
index 80240c24ec..202a185c78 100644
--- a/test/parallel/test-http-outgoing-proto.js
+++ b/test/parallel/test-http-outgoing-proto.js
@@ -32,7 +32,7 @@ assert.throws(() => {
assert.throws(() => {
const outgoingMessage = new OutgoingMessage();
- outgoingMessage.setHeader.call({_header: 'test'}, 'test', 'value');
+ outgoingMessage.setHeader.call({ _header: 'test' }, 'test', 'value');
}, /^Error: Can't set headers after they are sent\.$/);
assert.throws(() => {
@@ -46,16 +46,16 @@ assert.throws(() => {
outgoingMessage.write();
}, /^Error: _implicitHeader\(\) method is not implemented$/);
-assert(OutgoingMessage.prototype.write.call({_header: 'test'}));
+assert(OutgoingMessage.prototype.write.call({ _header: 'test' }));
assert.throws(() => {
const outgoingMessage = new OutgoingMessage();
- outgoingMessage.write.call({_header: 'test', _hasBody: 'test'});
+ outgoingMessage.write.call({ _header: 'test', _hasBody: 'test' });
}, /^TypeError: First argument must be a string or Buffer$/);
assert.throws(() => {
const outgoingMessage = new OutgoingMessage();
- outgoingMessage.write.call({_header: 'test', _hasBody: 'test'}, 1);
+ outgoingMessage.write.call({ _header: 'test', _hasBody: 'test' }, 1);
}, /^TypeError: First argument must be a string or Buffer$/);
// addTrailers
@@ -66,10 +66,10 @@ assert.throws(() => {
assert.throws(() => {
const outgoingMessage = new OutgoingMessage();
- outgoingMessage.addTrailers({'あ': 'value'});
+ outgoingMessage.addTrailers({ 'あ': 'value' });
}, /^TypeError: Trailer name must be a valid HTTP Token \["あ"\]$/);
assert.throws(() => {
const outgoingMessage = new OutgoingMessage();
- outgoingMessage.addTrailers({404: 'あ'});
+ outgoingMessage.addTrailers({ 404: 'あ' });
}, /^TypeError: The trailer content contains invalid characters$/);