From 8577be77e6ead88e7d9baf86f026fac4aeea4049 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 2 Aug 2015 21:34:47 -0400 Subject: start some tests for the server --- src/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/index.js b/src/index.js index 9c1019e..71b70df 100644 --- a/src/index.js +++ b/src/index.js @@ -190,6 +190,10 @@ server.route({ } }); -server.start(function() { - console.log('Server running!'); -}); +if (!module.parent) { + server.start(function() { + console.log('Server running!'); + }); +} + +module.exports = server; -- cgit v1.2.3