Skip to content
This repository has been archived by the owner on Jul 20, 2019. It is now read-only.

Commit

Permalink
Changed debug to false by default. Added comments to test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricard Aspeljung committed Apr 2, 2013
1 parent 8121b27 commit 906b07f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.json
Expand Up @@ -10,5 +10,5 @@
"address": "0.0.0.0"
},
"flavor": "normal",
"debug": true
"debug": false
}
11 changes: 9 additions & 2 deletions 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;

Expand All @@ -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');
Expand Down

0 comments on commit 906b07f

Please sign in to comment.