[Pkg-javascript-commits] [node-stream-http] 85/208: Minor whitespace fixes in node test

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 13 13:39:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-stream-http.

commit 3fda0048d730fee15ae88bbbb8110c5b3fad21be
Author: John Hiesey <john at hiesey.com>
Date:   Wed Sep 9 20:23:37 2015 -0700

    Minor whitespace fixes in node test
---
 test/node/http-browserify.js | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/test/node/http-browserify.js b/test/node/http-browserify.js
index 38fbe2f..144fbca 100644
--- a/test/node/http-browserify.js
+++ b/test/node/http-browserify.js
@@ -24,7 +24,7 @@ test('Test simple url string', function(t) {
 	var url = { path: '/api/foo' }
 	var request = http.get(url, noop)
 
-	t.equal( request._url, 'http://localhost:8081/api/foo', 'Url should be correct')
+	t.equal(request._url, 'http://localhost:8081/api/foo', 'Url should be correct')
 	t.end()
 
 })
@@ -46,9 +46,8 @@ test('Test full url object', function(t) {
 
 	var request = http.get(url, noop)
 
-	t.equal( request._url, 'http://localhost:8081/api/foo?bar=baz', 'Url should be correct')
+	t.equal(request._url, 'http://localhost:8081/api/foo?bar=baz', 'Url should be correct')
 	t.end()
-
 })
 
 test('Test alt protocol', function(t) {
@@ -61,31 +60,29 @@ test('Test alt protocol', function(t) {
 
 	var request = http.get(params, noop)
 
-	t.equal( request._url, 'foo://localhost:3000/bar', 'Url should be correct')
+	t.equal(request._url, 'foo://localhost:3000/bar', 'Url should be correct')
 	t.end()
-
 })
 
 test('Test string as parameters', function(t) {
 	var url = '/api/foo'
 	var request = http.get(url, noop)
 
-	t.equal( request._url, 'http://localhost:8081/api/foo', 'Url should be correct')
+	t.equal(request._url, 'http://localhost:8081/api/foo', 'Url should be correct')
 	t.end()
-
 })
 
 test('Test withCredentials param', function(t) {
 	var url = '/api/foo'
 
 	var request = http.get({ url: url, withCredentials: false }, noop)
-	t.equal( request._xhr.withCredentials, false, 'xhr.withCredentials should be false')
+	t.equal(request._xhr.withCredentials, false, 'xhr.withCredentials should be false')
 
 	var request = http.get({ url: url, withCredentials: true }, noop)
-	t.equal( request._xhr.withCredentials, true, 'xhr.withCredentials should be true')
+	t.equal(request._xhr.withCredentials, true, 'xhr.withCredentials should be true')
 
 	var request = http.get({ url: url }, noop)
-	t.equal( request._xhr.withCredentials, false, 'xhr.withCredentials should be false')
+	t.equal(request._xhr.withCredentials, false, 'xhr.withCredentials should be false')
 
 	t.end()
 })
@@ -94,7 +91,7 @@ test('Test ipv6 address', function(t) {
 	var url = 'http://[::1]:80/foo'
 	var request = http.get(url, noop)
 
-	t.equal( request._url, 'http://[::1]:80/foo', 'Url should be correct')
+	t.equal(request._url, 'http://[::1]:80/foo', 'Url should be correct')
 	t.end()
 })
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-http.git



More information about the Pkg-javascript-commits mailing list