Skip to content

Commit

Permalink
Add tests for bundle (#7980)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylEnkidu committed Jan 25, 2024
1 parent e929e3f commit 1e24c19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/firestore/test/unit/util/bundle_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,12 @@ export const doc2: BundleElement = {
name: 'projects/test-project/databases/(default)/documents/collectionId/doc2',
createTime: { seconds: 1, nanos: 2000000 },
updateTime: { seconds: 3, nanos: 4000 },
fields: { foo: { stringValue: 'value1' }, bar: { integerValue: 42 } }
fields: {
foo: { stringValue: 'value1' },
bar: { integerValue: 42 },
emptyArray: { arrayValue: {} },
emptyMap: { mapValue: {} }
}
}
};
export const doc2String = lengthPrefixedString(doc2);
Expand Down

0 comments on commit 1e24c19

Please sign in to comment.