Skip to content

Commit 1e24c19

Browse files
authored
Add tests for bundle (#7980)
1 parent e929e3f commit 1e24c19

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/firestore/test/unit/util/bundle_data.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ export const doc2: BundleElement = {
195195
name: 'projects/test-project/databases/(default)/documents/collectionId/doc2',
196196
createTime: { seconds: 1, nanos: 2000000 },
197197
updateTime: { seconds: 3, nanos: 4000 },
198-
fields: { foo: { stringValue: 'value1' }, bar: { integerValue: 42 } }
198+
fields: {
199+
foo: { stringValue: 'value1' },
200+
bar: { integerValue: 42 },
201+
emptyArray: { arrayValue: {} },
202+
emptyMap: { mapValue: {} }
203+
}
199204
}
200205
};
201206
export const doc2String = lengthPrefixedString(doc2);

0 commit comments

Comments
 (0)