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

Timestamp fns #45

Closed FrozenKiwi closed 4 years ago

FrozenKiwi commented 4 years ago

Description

Fill implementation of timestamp fn's allow us to use the mock throughout our pipeline.

Related issues

The following code would throw:

const db = ... (fake or real firestore
ts = db.Timestamp.now();

How to test

Unit tests included

FrozenKiwi commented 4 years ago

Actually, I just saw the @AverageHelper implemented these functions as well in his PR. Feel free to nix this one.