Permalink
Browse files

Remove trailing spaces.

[ci skip]
  • Loading branch information...
1 parent 26224e7 commit f6028fde66384d8445217501923c6b316082fbca @XhmikosR XhmikosR committed Apr 7, 2016
Showing with 6 additions and 6 deletions.
  1. +1 −1 tasks/connect.js
  2. +5 −5 test/connect_test.js
View
@@ -66,7 +66,7 @@ module.exports = function(grunt) {
if (options.protocol !== 'http' && options.protocol !== 'https' && options.protocol !== 'http2') {
grunt.fatal('protocol option must be \'http\', \'https\' or \'http2\'');
}
-
+
if (options.protocol === 'http2' && /^0.(?:1|2|3|4|5|6|7|8|9|10|11)\./.test(process.versions.node)) {
grunt.fatal('can\'t use http2 with node < 0.12, see https://github.com/molnarg/node-http2/issues/101');
}
View
@@ -79,7 +79,7 @@ exports.connect = {
test.equal(body, 'Hello world', 'should return static page');
test.done();
});
- }
+ }
},
custom_https: function(test) {
test.expect(2);
@@ -201,7 +201,7 @@ exports.connect = {
}
}, function(res, body) {
test.ok(body.indexOf('35729/livereload.js') !== -1, 'Should contain livereload snippet.');
-
+
// check if livereload works with params
get({
hostname: 'localhost',
@@ -287,7 +287,7 @@ exports.connect = {
}, function(res, body) {
test.equal(res.statusCode, 200, 'should return 200');
test.equal(body, 'Hello, world from port #' + PORT + '!', 'should return a dynamic response');
-
+
get({
hostname: 'localhost',
port: PORT,
@@ -304,7 +304,7 @@ exports.connect = {
},
allHostname: function(test) {
test.expect(3);
-
+
get('http://localhost:8012/fixtures/hello.txt', function(res, body) {
test.equal(res.statusCode, 200, 'should return 200');
get('http://127.0.0.1:8012/fixtures/hello.txt', function(res, body) {
@@ -332,7 +332,7 @@ exports.connect = {
},
routedMiddleware: function(test) {
test.expect(1);
-
+
get('http://localhost:8016/mung', function(res, body) {
test.equal(body, 'Yay', 'should return a string at /mung');
test.done();

0 comments on commit f6028fd

Please sign in to comment.