I wrote a few tests for FirestoreDocument, it's not complete but it's
what I had time for. In the course of testing I found that getCreatedTime
and getUpdatedTime was returning now when no value was provided (such as
listing a non-existent document or creating a new document), so I changed
that as well.
Please let me know if you want me to change anything about the style, structure or something else about the tests and I will try to change them accordingly.
I wrote a few tests for FirestoreDocument, it's not complete but it's what I had time for. In the course of testing I found that getCreatedTime and getUpdatedTime was returning now when no value was provided (such as listing a non-existent document or creating a new document), so I changed that as well.
Please let me know if you want me to change anything about the style, structure or something else about the tests and I will try to change them accordingly.