Skip to content

Commit

Permalink
fixed bug with password.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wilson committed Apr 17, 2014
1 parent 4618442 commit cfbb804
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion conn.js
Expand Up @@ -4,7 +4,6 @@ var url = require('url');

module.exports = function() {
if (cf.CloudApp.runningInCloud) {
var conn = process.env.COUCH || 'http://localhost:5984';
var config = cf.CloudApp.serviceProps['couchdb-eirenerx'];
conn = url.format({
host: config.host,
Expand Down
8 changes: 8 additions & 0 deletions test/conn.js
@@ -0,0 +1,8 @@
var conn = require('../conn')();

describe('conn', function() {
it('return localhost', function(done) {
console.log(conn);
done();
});
});

0 comments on commit cfbb804

Please sign in to comment.