Skip to content

Add geopoint support #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2021
Merged

Add geopoint support #105

merged 1 commit into from
Jul 14, 2021

Conversation

inlined
Copy link
Member

@inlined inlined commented Jul 14, 2021

Fixes #47

Looked into other reports that there are issues serializing a document reference or a timestamp. Added tests to verify that these actually work (though the types are a bit harder to work with).

@inlined inlined requested a review from joehan July 14, 2021 17:37
expect(snapshot.data()).to.deep.equal({ geopoint: hq });
});

it('should allow timestmaps with makeDocumentSnapshot', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in timestamps

@@ -29,4 +30,47 @@ describe('providers/firestore', () => {
expect(snapshot.data()).to.deep.equal(undefined);
expect(snapshot.id).to.equal('doc-id');
});

it('should allow geopoints with makeDocumentSnapshot', () => {
const test = fft();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional - could get rid of this line thats repeated in every test cases and use a before/beforeEach instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Cannot encode [object Object]to a Firestore Value. Local testing does not yet support Firestore geo points.
2 participants