-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
Version info
firebase-functions-test: ^0.1.1
firebase-functions: ^1.0.1
firebase-admin: ^5.12.0
Test case
Setting up the test object to connect to a non-default database in a project:
const test = require('firebase-functions-test')({
databaseURL: 'https://non-default-db.firebaseio.com/',
projectId: 'my-project'
}, './service-account-key.json')
Then creating a snapshot causes the snapshot to be created in the default database (I just used the example code here):
const snap = test.database.makeDataSnapshot('input', 'messages/11111/original')
Steps to reproduce
Follow the guide, for online mode, but replacing the default database url with that of another database as shown above.
Expected behavior
The snap should be created in the specified database and not the default one.
Actual behavior
The snap is created in the default database.
Metadata
Metadata
Assignees
Labels
No labels