Skip to content

Commit

Permalink
Give the Firebase App a name.
Browse files Browse the repository at this point in the history
  • Loading branch information
makara committed Oct 25, 2016
1 parent 4d8f504 commit 53d367f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/firebase3.js
Expand Up @@ -36,10 +36,11 @@ class Firebase extends NoSQL {
throw new Error('Database name must be specified in dataSource for Firebase connector');
}
// @see https://firebase.google.com/docs/reference/node/firebase#.initializeApp
// TODO: better app name?
this._app = firebase.initializeApp({
serviceAccount: settings.serviceAccount,
databaseURL: settings.databaseURL
});
}, database);
this._db = this._app.database();
return this._db.ref(database);
}
Expand Down
4 changes: 0 additions & 4 deletions test/00.connection.test.js
Expand Up @@ -68,8 +68,4 @@ describe('CouchDB connector', () => {
connector.disconnect(done);
});

it('can connect', (done) => {
connector.connect(done);
});

});

0 comments on commit 53d367f

Please sign in to comment.