Skip to content

Commit 93da18d

Browse files
committed
fix formating
1 parent d43f9fc commit 93da18d

1 file changed

Lines changed: 22 additions & 18 deletions

File tree

  • packages/cloud_firestore/cloud_firestore/example/integration_test

packages/cloud_firestore/cloud_firestore/example/integration_test/query_e2e.dart

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,28 +1023,32 @@ void runQueryTests() {
10231023
expect(snapshot.docs[1].id, equals('doc4'));
10241024
});
10251025

1026-
test('startAfterDocument() preserves Timestamp cursor precision',
1027-
() async {
1028-
CollectionReference<Map<String, dynamic>> collection =
1029-
await initializeTest('startAfter-document-timestamp-precision');
1030-
await collection.doc('doc1').set({
1031-
'createdAt': Timestamp(1, 123456789),
1032-
});
1026+
test(
1027+
'startAfterDocument() preserves Timestamp cursor precision',
1028+
() async {
1029+
CollectionReference<Map<String, dynamic>> collection =
1030+
await initializeTest('startAfter-document-timestamp-precision');
1031+
await collection.doc('doc1').set({
1032+
'createdAt': Timestamp(1, 123456789),
1033+
});
10331034

1034-
Query<Map<String, dynamic>> baseQuery = collection.orderBy('createdAt');
1035-
QuerySnapshot<Map<String, dynamic>> firstPage =
1036-
await baseQuery.limit(50).get();
1035+
Query<Map<String, dynamic>> baseQuery =
1036+
collection.orderBy('createdAt');
1037+
QuerySnapshot<Map<String, dynamic>> firstPage =
1038+
await baseQuery.limit(50).get();
10371039

1038-
expect(firstPage.docs.length, equals(1));
1039-
expect(firstPage.docs.first.id, equals('doc1'));
1040+
expect(firstPage.docs.length, equals(1));
1041+
expect(firstPage.docs.first.id, equals('doc1'));
10401042

1041-
QuerySnapshot<Map<String, dynamic>> nextPage = await baseQuery
1042-
.startAfterDocument(firstPage.docs.last)
1043-
.limit(50)
1044-
.get();
1043+
QuerySnapshot<Map<String, dynamic>> nextPage = await baseQuery
1044+
.startAfterDocument(firstPage.docs.last)
1045+
.limit(50)
1046+
.get();
10451047

1046-
expect(nextPage.docs, isEmpty);
1047-
}, skip: !kIsWeb);
1048+
expect(nextPage.docs, isEmpty);
1049+
},
1050+
skip: !kIsWeb,
1051+
);
10481052

10491053
testWidgets(
10501054
'throws exception without orderBy() on field used for inequality query',

0 commit comments

Comments
 (0)