diff options
author | Oleg Efimov <efimovov@gmail.com> | 2010-12-06 01:33:52 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-12-05 15:42:41 -0800 |
commit | 093dfaf801a10905ba27df8cf3aa17b36ea5149a (patch) | |
tree | 27c559ae0d5c97c4671be1ed2b7d247ea6aacb34 /test/simple/test-http-head-request.js | |
parent | 0665f0271e71270dc23ec5231b245adfe709a49f (diff) | |
download | node-new-093dfaf801a10905ba27df8cf3aa17b36ea5149a.tar.gz |
GJSLint all tests, only 3 long lines left in test-url.js
test/simple/test-url.js:31:(0110) Line too long (82 characters).
test/simple/test-url.js:39:(0110) Line too long (85 characters).
test/simple/test-url.js:40:(0110) Line too long (92 characters).
Diffstat (limited to 'test/simple/test-http-head-request.js')
-rw-r--r-- | test/simple/test-http-head-request.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/simple/test-http-head-request.js b/test/simple/test-http-head-request.js index 57878d4550..627ede43ce 100644 --- a/test/simple/test-http-head-request.js +++ b/test/simple/test-http-head-request.js @@ -4,30 +4,30 @@ var http = require('http'); var util = require('util'); -var body = "hello world\n"; +var body = 'hello world\n'; -var server = http.createServer(function (req, res) { +var server = http.createServer(function(req, res) { common.error('req: ' + req.method); - res.writeHead(200, {"Content-Length": body.length}); + res.writeHead(200, {'Content-Length': body.length}); res.end(); server.close(); }); var gotEnd = false; -server.listen(common.PORT, function () { +server.listen(common.PORT, function() { var client = http.createClient(common.PORT); - var request = client.request("HEAD", "/"); + var request = client.request('HEAD', '/'); request.end(); - request.addListener('response', function (response) { + request.addListener('response', function(response) { common.error('response start'); - response.addListener("end", function () { + response.addListener('end', function() { common.error('response end'); gotEnd = true; }); }); }); -process.addListener('exit', function () { +process.addListener('exit', function() { assert.ok(gotEnd); }); |