From c2c626f3082869d2746c0d470ecba7303bbb07ac Mon Sep 17 00:00:00 2001 From: dead_horse Date: Fri, 22 Jul 2016 19:03:34 +0800 Subject: [PATCH] typo --- test/response/writeable.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/response/writeable.js b/test/response/writeable.js index 88c3750..7af52c1 100644 --- a/test/response/writeable.js +++ b/test/response/writeable.js @@ -8,7 +8,7 @@ var net = require('net'); describe('res.writable', function(){ describe('when continuous requests in one persistent connection', function() { function requestTwice(server, done) { - let port = server.address().port; + var port = server.address().port; var buf = new Buffer('GET / HTTP/1.1\r\nHost: localhost:' + port + '\r\nConnection: keep-alive\r\n\r\n'); var client = net.connect(port); var datas = []; @@ -51,7 +51,7 @@ describe('res.writable', function(){ describe('when socket closed before response sent', function() { function requsetClosed(server) { - let port = server.address().port; + var port = server.address().port; var buf = new Buffer('GET / HTTP/1.1\r\nHost: localhost:' + port + '\r\nConnection: keep-alive\r\n\r\n'); var client = net.connect(port); setImmediate(function() { @@ -72,9 +72,9 @@ describe('res.writable', function(){ }) }) - describe('when resposne finished', function() { + describe('when response finished', function() { function request(server) { - let port = server.address().port; + var port = server.address().port; var buf = new Buffer('GET / HTTP/1.1\r\nHost: localhost:' + port + '\r\nConnection: keep-alive\r\n\r\n'); var client = net.connect(port); setImmediate(function() {