sbatson5 / firestore-jest-mock

Jest Helper library for mocking Cloud Firestore
https://www.npmjs.com/package/firestore-jest-mock
178 stars 59 forks source link

Update doc function to account for collection path #17

Closed beahuang closed 4 years ago

beahuang commented 4 years ago

Description

Updates doc function to account of collection path and write tests to account for that case

Related issues

Fixes #14

How to test

In your repo run db.doc('foo/bar/id') and assert that it works as intended.