Permalink
Browse files

Changed debug to false by default. Added comments to test.

  • Loading branch information...
1 parent 8121b27 commit 906b07f7b4865828e78022b836b6f16f35638275 Ricard Aspeljung committed Apr 2, 2013
Showing with 10 additions and 3 deletions.
  1. +1 −1 config.json
  2. +9 −2 test/test.js
View
@@ -10,5 +10,5 @@
"address": "0.0.0.0"
},
"flavor": "normal",
- "debug": true
+ "debug": false
}
View
@@ -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');

0 comments on commit 906b07f

Please sign in to comment.