Skip to content

Commit c919b45

Browse files
Don't store document with 0 version in Spec Test (#1903)
1 parent a6b8180 commit c919b45

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/firestore/test/unit/specs/listen_spec.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describeSpec('Listens:', [], () => {
102102

103103
specTest("Doesn't raise 'hasPendingWrites' for deletes", [], () => {
104104
const query1 = Query.atPath(path('collection'));
105-
const docA = doc('collection/a', 0, { key: 'a' });
105+
const docA = doc('collection/a', 1000, { key: 'a' });
106106

107107
return spec()
108108
.userListens(query1)

packages/firestore/test/unit/specs/orderby_spec.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ describeSpec('OrderBy:', [], () => {
6262
const query = Query.atPath(path('collection')).addOrderBy(
6363
orderBy('sort', 'asc')
6464
);
65-
const docA = doc('collection/a', 0, { key: 'a', sort: 2 });
65+
const docA = doc('collection/a', 1000, { key: 'a', sort: 2 });
6666
const docB = doc('collection/b', 1001, { key: 'b', sort: 1 });
6767

6868
return spec()
6969
.withGCEnabled(false)
7070
.userListens(query)
71-
.watchAcksFull(query, 1000, docA, docB)
71+
.watchAcksFull(query, 1002, docA, docB)
7272
.expectEvents(query, { added: [docB, docA] })
7373
.userUnlistens(query)
7474
.watchRemoves(query)
75-
.userListens(query, 'resume-token-1000')
75+
.userListens(query, 'resume-token-1002')
7676
.expectEvents(query, { added: [docB, docA], fromCache: true })
77-
.watchAcksFull(query, 1000)
77+
.watchAcksFull(query, 1002)
7878
.expectEvents(query, {});
7979
});
8080
});

0 commit comments

Comments
 (0)