Skip to content

Commit 44d8045

Browse files
committed
map Timestamp fields to DbTimestamp fields
1 parent f305182 commit 44d8045

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/firestore/test/unit/local/indexeddb_persistence.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,14 @@ describe('IndexedDbSchema: createOrUpgradeDb', () => {
316316
lastRemoteSnapshotVersion: { seconds: 1, nanoseconds: 1 },
317317
targetCount: 1
318318
};
319+
const timestamp = SnapshotVersion.min().toTimestamp();
319320
const resetTargetGlobal: DbTargetGlobal = {
320321
highestTargetId: 0,
321322
highestListenSequenceNumber: 0,
322-
lastRemoteSnapshotVersion: SnapshotVersion.min().toTimestamp(),
323+
lastRemoteSnapshotVersion: {
324+
seconds: timestamp.seconds,
325+
nanoseconds: timestamp.nanoseconds
326+
},
323327
targetCount: 0
324328
};
325329

0 commit comments

Comments
 (0)