Full path of the reference (e.g. 'users/alovelace').
app
firebase.app.App
The Firebase app that the database belongs to. The databaseURL supplied when initializing the app is used for creating this snapshot. You do not need to supply this parameter if you supplied config values when initializing
firebase-functions-test.
[null,null,["Last updated 2019-12-03 UTC."],[],[],null,["# Namespace: database\n\n[test](/docs/reference/functions/test/test).database\n====================================================\n\nnamespace static\n\nNamespace for testing Realtime Database functions using the Cloud Functions for Firebase Test SDK.\n\nMethods\n-------\n\n### exampleDataSnapshot\n\nstatic\n\nexampleDataSnapshot() returns test.database.DataSnapshot\n\nFetch an example data snapshot already populated with data. Can be passed into a wrapped database `onCreate` or `onDelete` function.\n\nReturns\n\n: `non-null test.database.DataSnapshot`\n\n### exampleDataSnapshotChange\n\nstatic\n\nexampleDataSnapshotChange() returns test.database.DataSnapshot\n\nFetch an example `Change` object of data snapshots already populated with data. Can be passed into a wrapped database `onUpdate` or `onWrite` function.\n\nReturns\n\n: `non-null test.database.DataSnapshot`\n\n### makeDataSnapshot\n\nstatic\n\nmakeDataSnapshot(val, refPath, app) returns test.database.DataSnapshot\n\nCreate a data snapshot for testing.\n\n| #### Parameter ||\n|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| val | (string, number, boolean, or non-null Object) Value of data for the snapshot. |\n| refPath | string Full path of the reference (e.g. 'users/alovelace'). |\n| app | firebase.app.App The Firebase app that the database belongs to. The `databaseURL` supplied when initializing the app is used for creating this snapshot. You do not need to supply this parameter if you supplied config values when initializing `firebase-functions-test`. Value may be null. |\n\nReturns\n\n: `non-null test.database.DataSnapshot`"]]