diff options
author | Ben Burwell <ben@benburwell.com> | 2015-08-02 21:36:15 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2015-08-02 21:36:15 -0400 |
commit | 3adb8f65ed5dadd79469c56948fef0a7dde614bc (patch) | |
tree | ac122c9fed45522c56bebb1173861eae16d4f25a /src | |
parent | 52aeca23f6c9a86afbaec278bc2fcda0993e3d00 (diff) | |
parent | 8577be77e6ead88e7d9baf86f026fac4aeea4049 (diff) |
Start some tests for the server
Diffstat (limited to 'src')
-rw-r--r-- | src/index.js | 10 |
1 files changed, 7 insertions, 3 deletions
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; |