Skip to content

Commit ec03960

Browse files
committed
Add one more
1 parent 37e16cf commit ec03960

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/firestore/test/integration/api/query.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,15 @@ apiDescribe('Queries', (persistence: boolean) => {
273273
);
274274
expect(toDataArray(docs)).to.deep.equal([{ k: 'd', sort: 2 }]);
275275

276+
docs = await getDocs(
277+
query(collection, orderBy('sort'), startAfter(0), limitToLast(3))
278+
);
279+
expect(toDataArray(docs)).to.deep.equal([
280+
{ k: 'b', sort: 1 },
281+
{ k: 'c', sort: 1 },
282+
{ k: 'd', sort: 2 }
283+
]);
284+
276285
docs = await getDocs(
277286
query(collection, orderBy('sort'), startAfter(-1), limitToLast(3))
278287
);

0 commit comments

Comments
 (0)