aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2015-08-02 21:36:15 -0400
committerBen Burwell <ben@benburwell.com>2015-08-02 21:36:15 -0400
commit3adb8f65ed5dadd79469c56948fef0a7dde614bc (patch)
treeac122c9fed45522c56bebb1173861eae16d4f25a /src
parent52aeca23f6c9a86afbaec278bc2fcda0993e3d00 (diff)
parent8577be77e6ead88e7d9baf86f026fac4aeea4049 (diff)
Merge pull request #7 from benburwell/add-server-testsHEADmaster
Start some tests for the server
Diffstat (limited to 'src')
-rw-r--r--src/index.js10
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;