We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53ccf19 commit 332c36cCopy full SHA for 332c36c
packages/firestore/test/unit/api/field_value.test.ts
@@ -33,4 +33,12 @@ describe('FieldValue', () => {
33
expect(FieldValue.arrayUnion('a')).to.be.an.instanceOf(FieldValue);
34
expect(FieldValue.arrayRemove('a')).to.be.an.instanceOf(FieldValue);
35
});
36
+
37
+ it('JSON.stringify() does not throw', () => {
38
+ JSON.stringify(FieldValue.delete());
39
+ JSON.stringify(FieldValue.serverTimestamp());
40
+ JSON.stringify(FieldValue.increment(1));
41
+ JSON.stringify(FieldValue.arrayUnion(2));
42
+ JSON.stringify(FieldValue.arrayRemove(3));
43
+ });
44
0 commit comments