Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
danielb2 committed Aug 25, 2015
1 parent 0efa75b commit 3cff28c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/index.js
Expand Up @@ -104,6 +104,7 @@ internals.prepareServer = function (options, callback) {
server.connection({ labels: ['first'] });
server.connection({ labels: ['second'] });
server.connection();

server.register(require('hapi-auth-basic'), function (err) {


Expand All @@ -116,6 +117,7 @@ internals.prepareServer = function (options, callback) {
server.auth.default('findme');
}
});

var api = {
register: function (plugin, pluginOptions, next) {

Expand All @@ -126,7 +128,7 @@ internals.prepareServer = function (options, callback) {
description: 'api routes',
handler: function (request, reply) {

reply('index!');
return reply('index!');
}
}
});
Expand All @@ -150,7 +152,7 @@ internals.prepareServer = function (options, callback) {
description: 'main index',
handler: function (request, reply) {

reply('index!');
return reply('index!');
}
}
});
Expand All @@ -162,7 +164,7 @@ internals.prepareServer = function (options, callback) {
auth: options.authType ? 'findme' : null,
handler: function (request, reply) {

reply('Hello!');
return reply('Hello!');
}
}
});
Expand All @@ -172,7 +174,7 @@ internals.prepareServer = function (options, callback) {
path: '/apost/{foo}/comment/{another}',
handler: function (request, reply) {

reply('');
return reply('');
}
});

Expand All @@ -181,7 +183,7 @@ internals.prepareServer = function (options, callback) {
path: '/post/{id}',
handler: function (request, reply) {

reply('');
return reply('');
}
});

Expand All @@ -202,7 +204,7 @@ internals.prepareServer = function (options, callback) {
description: 'a route on all connections',
handler: function (request, reply) {

reply('index!');
return reply('index!');
}
}
});
Expand All @@ -214,7 +216,7 @@ internals.prepareServer = function (options, callback) {
server.register([api], { select: 'second' }, function (err) {

expect(err).to.not.exist();
callback(server);
return callback(server);
});
});
});
Expand Down

0 comments on commit 3cff28c

Please sign in to comment.