Skip to content

Commit 2c6bbfe

Browse files
committed
refactor: improve code formatting in pipeline integration tests
1 parent 5706b2b commit 2c6bbfe

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

packages/cloud_firestore/cloud_firestore/pipeline_example/integration_test/pipeline/pipeline_expressions_e2e.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ void runPipelineExpressionsTests() {
9494
.limit(5)
9595
.execute();
9696
expectResultCount(snapshot, 5);
97-
final withTags = snapshot.result
98-
.where((r) => r.data()!['tags_len'] == 2)
99-
.toList();
97+
final withTags =
98+
snapshot.result.where((r) => r.data()!['tags_len'] == 2).toList();
10099
expect(withTags.length, 1);
101100
expect(withTags.first.data()!['score'], 50);
102101
});
@@ -539,8 +538,7 @@ void runPipelineExpressionsTests() {
539538
expect(e.message!, contains('Unsupported expression'));
540539
}
541540
},
542-
skip:
543-
defaultTargetPlatform != TargetPlatform.iOS &&
541+
skip: defaultTargetPlatform != TargetPlatform.iOS &&
544542
defaultTargetPlatform != TargetPlatform.macOS,
545543
);
546544
});

packages/cloud_firestore/cloud_firestore/pipeline_example/integration_test/pipeline/pipeline_filter_sort_e2e.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ void runPipelineFilterSortTests() {
8080
.limit(10)
8181
.execute();
8282
expectResultCount(snapshot, 3);
83-
final categories = snapshot.result
84-
.map((r) => r.data()!['category'])
85-
.toList();
83+
final categories =
84+
snapshot.result.map((r) => r.data()!['category']).toList();
8685
expect(categories..sort(), ['a', 'b', 'c']);
8786
});
8887
});

packages/cloud_firestore/cloud_firestore/pipeline_example/integration_test/pipeline/pipeline_unnest_union_e2e.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ void runPipelineUnnestUnionTests() {
2929
.limit(10)
3030
.execute();
3131
expectResultCount(snapshot, 5);
32-
final tags = snapshot.result
33-
.map((r) => r.data()!['tag'] as String)
34-
.toList();
32+
final tags =
33+
snapshot.result.map((r) => r.data()!['tag'] as String).toList();
3534
expect(tags..sort(), [
3635
'dart',
3736
'dart',

0 commit comments

Comments
 (0)