From 906b07f7b4865828e78022b836b6f16f35638275 Mon Sep 17 00:00:00 2001 From: Ricard Aspeljung Date: Tue, 2 Apr 2013 13:15:19 +0200 Subject: [PATCH] Changed debug to false by default. Added comments to test. --- config.json | 2 +- test/test.js | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/config.json b/config.json index 5fdc447..13a0b25 100644 --- a/config.json +++ b/config.json @@ -10,5 +10,5 @@ "address": "0.0.0.0" }, "flavor": "normal", - "debug": true + "debug": false } \ No newline at end of file diff --git a/test/test.js b/test/test.js index 08c9a56..6b33278 100644 --- a/test/test.js +++ b/test/test.js @@ -1,13 +1,21 @@ +/** + * Copyright 2013 Ricard Aspeljung. All Rights Reserved. + * + * test.js + * crest + */ + var main = require('../server'), supertest = require('supertest'), assert = require('assert'), http = require('http'); var objectId; - var request = supertest(main.server); +/* Setting up configuration for testing */ main.config.flavor = "normal"; +main.config.debug = false; delete main.config.db.username; delete main.config.db.password; @@ -28,7 +36,6 @@ describe("Testing crest", function () { if (err) { return done(err); } - console.log(res); assert.deepEqual(res.body, {"ok": 1}); var location = res.header.location.split('/').slice(1); assert.equal(location[0], 'tests');