summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js
diff options
context:
space:
mode:
authorBrandon Smith <brandon93s@gmail.com>2018-10-06 21:09:29 -0400
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-10-09 16:53:12 +0300
commit13340d47fcdbc9fa0eaaeee52d2c09338590a797 (patch)
tree8c818025873cdf6e4ef7a9f390f4e7aa9df4c791 /test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js
parent4d58c08865d7c996bb8cfbe15793443fd425410f (diff)
downloadandroid-node-v8-13340d47fcdbc9fa0eaaeee52d2c09338590a797.tar.gz
android-node-v8-13340d47fcdbc9fa0eaaeee52d2c09338590a797.tar.bz2
android-node-v8-13340d47fcdbc9fa0eaaeee52d2c09338590a797.zip
benchmark,doc,lib,src,test,tools: fix typos
PR-URL: https://github.com/nodejs/node/pull/23302 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js')
-rw-r--r--test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js b/test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js
index 83d5521bf2..ce8cbe600c 100644
--- a/test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js
+++ b/test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js
@@ -15,15 +15,15 @@ const {
HTTP_STATUS_NOT_MODIFIED
} = h2.constants;
-const statusWithouBody = [
+const statusWithoutBody = [
HTTP_STATUS_NO_CONTENT,
HTTP_STATUS_RESET_CONTENT,
HTTP_STATUS_NOT_MODIFIED,
];
-const STATUS_CODES_COUNT = statusWithouBody.length;
+const STATUS_CODES_COUNT = statusWithoutBody.length;
const server = h2.createServer(common.mustCall(function(req, res) {
- res.writeHead(statusWithouBody.pop());
+ res.writeHead(statusWithoutBody.pop());
res.end();
}, STATUS_CODES_COUNT));