firebase-functions-test icon indicating copy to clipboard operation
firebase-functions-test copied to clipboard

Updates `firebaseApp` check in `makeDocumentSnapshot`

Open rharter opened this issue 4 years ago • 0 comments
trafficstars

Fixes #79

Pretty self-explainatory, the optional property check is checking for a property called app (like from RDB), but the firestore property is called firestoreApp.

The existing work-around when you want to create a snapshot in your own app is to add both properties and cast:

makeDocumentSnapshot(data, `/path/to/data`, {firebaseApp: app, app: app} as DocumentSnapshotOptions)

rharter avatar Nov 24 '20 17:11 rharter