Skip to content

Commit

Permalink
Remove trailing spaces.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
XhmikosR committed Apr 8, 2016
1 parent 26224e7 commit f6028fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tasks/connect.js
Expand Up @@ -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');
}
Expand Down
10 changes: 5 additions & 5 deletions test/connect_test.js
Expand Up @@ -79,7 +79,7 @@ exports.connect = {
test.equal(body, 'Hello world', 'should return static page');
test.done();
});
}
}
},
custom_https: function(test) {
test.expect(2);
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand All @@ -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) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit f6028fd

Please sign in to comment.